Package com.google.gerrit.server.submit
Class ChangeSet
- java.lang.Object
-
- com.google.gerrit.server.submit.ChangeSet
-
public class ChangeSet extends Object
A set of changes grouped together to be submitted atomically.MergeSuperSet constructs ChangeSets to accumulate intermediate results toward the ChangeSet it returns when done.
This class is not thread safe.
-
-
Constructor Summary
Constructors Constructor Description ChangeSet(ChangeData change, boolean visible)
ChangeSet(Iterable<ChangeData> changes, Iterable<ChangeData> hiddenChanges)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableCollection<ChangeData>
changes()
com.google.common.collect.ListMultimap<BranchNameKey,ChangeData>
changesByBranch()
com.google.common.collect.ImmutableMap<Change.Id,ChangeData>
changesById()
boolean
furtherHiddenChanges()
com.google.common.collect.ImmutableSet<Change.Id>
ids()
com.google.common.collect.ImmutableList<ChangeData>
nonVisibleChanges()
com.google.common.collect.ImmutableSet<Change.Id>
nonVisibleIds()
com.google.common.collect.ImmutableSet<Project.NameKey>
projects()
int
size()
String
toString()
-
-
-
Constructor Detail
-
ChangeSet
public ChangeSet(Iterable<ChangeData> changes, Iterable<ChangeData> hiddenChanges)
-
ChangeSet
public ChangeSet(ChangeData change, boolean visible)
-
-
Method Detail
-
ids
public com.google.common.collect.ImmutableSet<Change.Id> ids()
-
changesById
public com.google.common.collect.ImmutableMap<Change.Id,ChangeData> changesById()
-
changesByBranch
public com.google.common.collect.ListMultimap<BranchNameKey,ChangeData> changesByBranch()
-
changes
public com.google.common.collect.ImmutableCollection<ChangeData> changes()
-
projects
public com.google.common.collect.ImmutableSet<Project.NameKey> projects()
-
nonVisibleIds
public com.google.common.collect.ImmutableSet<Change.Id> nonVisibleIds()
-
nonVisibleChanges
public com.google.common.collect.ImmutableList<ChangeData> nonVisibleChanges()
-
furtherHiddenChanges
public boolean furtherHiddenChanges()
-
size
public int size()
-
-