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(com.google.gerrit.reviewdb.client.Change change,
java.lang.Iterable<com.google.gerrit.reviewdb.client.ChangeMessage> changeMessages,
java.lang.Iterable<com.google.gerrit.reviewdb.client.PatchSet> patchSets,
java.lang.Iterable<com.google.gerrit.reviewdb.client.PatchSetApproval> patchSetApprovals,
java.lang.Iterable<com.google.gerrit.reviewdb.client.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(PatchLineCommentsUtil plcUtil,
ChangeNotes notes) |
static ChangeBundle |
fromReviewDb(com.google.gerrit.reviewdb.server.ReviewDb db,
com.google.gerrit.reviewdb.client.Change.Id id) |
com.google.gerrit.reviewdb.client.Change |
getChange() |
com.google.common.collect.ImmutableCollection<com.google.gerrit.reviewdb.client.ChangeMessage> |
getChangeMessages() |
com.google.common.collect.ImmutableCollection<com.google.gerrit.reviewdb.client.PatchLineComment> |
getPatchLineComments() |
com.google.common.collect.ImmutableCollection<com.google.gerrit.reviewdb.client.PatchSetApproval> |
getPatchSetApprovals() |
com.google.common.collect.ImmutableCollection<com.google.gerrit.reviewdb.client.PatchSet> |
getPatchSets() |
ReviewerSet |
getReviewers() |
ChangeBundle.Source |
getSource() |
java.lang.String |
toString() |
public ChangeBundle(com.google.gerrit.reviewdb.client.Change change, java.lang.Iterable<com.google.gerrit.reviewdb.client.ChangeMessage> changeMessages, java.lang.Iterable<com.google.gerrit.reviewdb.client.PatchSet> patchSets, java.lang.Iterable<com.google.gerrit.reviewdb.client.PatchSetApproval> patchSetApprovals, java.lang.Iterable<com.google.gerrit.reviewdb.client.PatchLineComment> patchLineComments, ReviewerSet reviewers, ChangeBundle.Source source)
public static ChangeBundle fromReviewDb(com.google.gerrit.reviewdb.server.ReviewDb db, com.google.gerrit.reviewdb.client.Change.Id id) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public static ChangeBundle fromNotes(PatchLineCommentsUtil plcUtil, ChangeNotes notes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public com.google.gerrit.reviewdb.client.Change getChange()
public com.google.common.collect.ImmutableCollection<com.google.gerrit.reviewdb.client.ChangeMessage> getChangeMessages()
public com.google.common.collect.ImmutableCollection<com.google.gerrit.reviewdb.client.PatchSet> getPatchSets()
public com.google.common.collect.ImmutableCollection<com.google.gerrit.reviewdb.client.PatchSetApproval> getPatchSetApprovals()
public com.google.common.collect.ImmutableCollection<com.google.gerrit.reviewdb.client.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