public class ChangeBundle
extends java.lang.Object
Change
entity.
See the Change
Javadoc for a depiction of this tree. Bundles may be compared using
differencesFrom(ChangeBundle)
, which normalizes out the minor implementation differences
between ReviewDb and NoteDb.
Modifier and Type | Class and Description |
---|---|
static class |
ChangeBundle.Source |
Constructor and Description |
---|
ChangeBundle(Change change,
java.lang.Iterable<ChangeMessage> changeMessages,
java.lang.Iterable<PatchSet> patchSets,
java.lang.Iterable<PatchSetApproval> patchSetApprovals,
java.lang.Iterable<PatchLineComment> patchLineComments,
ReviewerSet reviewers,
ChangeBundle.Source source) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<java.lang.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() |
java.lang.String |
toString() |
public ChangeBundle(Change change, java.lang.Iterable<ChangeMessage> changeMessages, java.lang.Iterable<PatchSet> patchSets, java.lang.Iterable<PatchSetApproval> patchSetApprovals, java.lang.Iterable<PatchLineComment> patchLineComments, ReviewerSet reviewers, ChangeBundle.Source source)
public static ChangeBundle fromNotes(CommentsUtil commentsUtil, ChangeNotes notes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public Change getChange()
public com.google.common.collect.ImmutableCollection<ChangeMessage> getChangeMessages()
public com.google.common.collect.ImmutableCollection<PatchSet> getPatchSets()
public com.google.common.collect.ImmutableCollection<PatchSetApproval> getPatchSetApprovals()
public com.google.common.collect.ImmutableCollection<PatchLineComment> getPatchLineComments()
public ReviewerSet getReviewers()
public ChangeBundle.Source getSource()
public com.google.common.collect.ImmutableList<java.lang.String> differencesFrom(ChangeBundle o)
public java.lang.String toString()
toString
in class java.lang.Object