public class ChangeSet extends Object
MergeSuperSet constructs ChangeSets to accumulate intermediate results toward the ChangeSet it returns when done.
This class is not thread safe.
Constructor and Description |
---|
ChangeSet(ChangeData change,
boolean visible) |
ChangeSet(Iterable<ChangeData> changes,
Iterable<ChangeData> hiddenChanges) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.SetMultimap<com.google.gerrit.reviewdb.client.Project.NameKey,com.google.gerrit.reviewdb.client.Branch.NameKey> |
branchesByProject() |
com.google.common.collect.ImmutableCollection<ChangeData> |
changes() |
com.google.common.collect.Multimap<com.google.gerrit.reviewdb.client.Branch.NameKey,ChangeData> |
changesByBranch() |
com.google.common.collect.ImmutableMap<com.google.gerrit.reviewdb.client.Change.Id,ChangeData> |
changesById() |
boolean |
furtherHiddenChanges() |
com.google.common.collect.ImmutableSet<com.google.gerrit.reviewdb.client.Change.Id> |
ids() |
com.google.common.collect.ImmutableList<ChangeData> |
nonVisibleChanges() |
com.google.common.collect.ImmutableSet<com.google.gerrit.reviewdb.client.Change.Id> |
nonVisibleIds() |
int |
size() |
String |
toString() |
public ChangeSet(Iterable<ChangeData> changes, Iterable<ChangeData> hiddenChanges)
public ChangeSet(ChangeData change, boolean visible)
public com.google.common.collect.ImmutableSet<com.google.gerrit.reviewdb.client.Change.Id> ids()
public com.google.common.collect.ImmutableMap<com.google.gerrit.reviewdb.client.Change.Id,ChangeData> changesById()
public com.google.common.collect.SetMultimap<com.google.gerrit.reviewdb.client.Project.NameKey,com.google.gerrit.reviewdb.client.Branch.NameKey> branchesByProject() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public com.google.common.collect.Multimap<com.google.gerrit.reviewdb.client.Branch.NameKey,ChangeData> changesByBranch() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public com.google.common.collect.ImmutableCollection<ChangeData> changes()
public com.google.common.collect.ImmutableSet<com.google.gerrit.reviewdb.client.Change.Id> nonVisibleIds()
public com.google.common.collect.ImmutableList<ChangeData> nonVisibleChanges()
public boolean furtherHiddenChanges()
public int size()