Package com.google.gerrit.server.notedb
Class ChangeBundle
- java.lang.Object
-
- com.google.gerrit.server.notedb.ChangeBundle
-
public class ChangeBundle extends Object
A bundle of all entities rooted at a singleChange
entity.See the
Change
Javadoc for a depiction of this tree. Bundles may be compared usingdifferencesFrom(ChangeBundle)
, which normalizes out the minor implementation differences between ReviewDb and NoteDb.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChangeBundle.Source
-
Constructor Summary
Constructors Constructor Description ChangeBundle(Change change, Iterable<ChangeMessage> changeMessages, Iterable<PatchSet> patchSets, Iterable<PatchSetApproval> patchSetApprovals, Iterable<PatchLineComment> patchLineComments, ReviewerSet reviewers, ChangeBundle.Source source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableList<String>
differencesFrom(ChangeBundle o)
static ChangeBundle
fromNotes(CommentsUtil commentsUtil, ChangeNotes notes)
Change
getChange()
com.google.common.collect.ImmutableCollection<ChangeMessage>
getChangeMessages()
com.google.common.collect.ImmutableCollection<PatchLineComment>
getPatchLineComments()
com.google.common.collect.ImmutableCollection<PatchSetApproval>
getPatchSetApprovals()
com.google.common.collect.ImmutableCollection<PatchSet>
getPatchSets()
ReviewerSet
getReviewers()
ChangeBundle.Source
getSource()
String
toString()
-
-
-
Constructor Detail
-
ChangeBundle
public ChangeBundle(Change change, Iterable<ChangeMessage> changeMessages, Iterable<PatchSet> patchSets, Iterable<PatchSetApproval> patchSetApprovals, Iterable<PatchLineComment> patchLineComments, ReviewerSet reviewers, ChangeBundle.Source source)
-
-
Method Detail
-
fromNotes
public static ChangeBundle fromNotes(CommentsUtil commentsUtil, ChangeNotes notes) throws com.google.gwtorm.server.OrmException
- Throws:
com.google.gwtorm.server.OrmException
-
getChange
public Change getChange()
-
getChangeMessages
public com.google.common.collect.ImmutableCollection<ChangeMessage> getChangeMessages()
-
getPatchSets
public com.google.common.collect.ImmutableCollection<PatchSet> getPatchSets()
-
getPatchSetApprovals
public com.google.common.collect.ImmutableCollection<PatchSetApproval> getPatchSetApprovals()
-
getPatchLineComments
public com.google.common.collect.ImmutableCollection<PatchLineComment> getPatchLineComments()
-
getReviewers
public ReviewerSet getReviewers()
-
getSource
public ChangeBundle.Source getSource()
-
differencesFrom
public com.google.common.collect.ImmutableList<String> differencesFrom(ChangeBundle o)
-
-