Package com.google.gerrit.server
Class ReviewerSet
- java.lang.Object
-
- com.google.gerrit.server.ReviewerSet
-
public class ReviewerSet extends Object
Set of reviewers on a change.A given account may appear in multiple states and at different timestamps. No reviewers with state
ReviewerStateInternal.REMOVED
are ever exposed by this interface.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableSet<Account.Id>
all()
com.google.common.collect.ImmutableTable<ReviewerStateInternal,Account.Id,Instant>
asTable()
com.google.common.collect.ImmutableSet<Account.Id>
byState(ReviewerStateInternal state)
static ReviewerSet
empty()
boolean
equals(Object o)
static ReviewerSet
fromApprovals(Iterable<PatchSetApproval> approvals)
static ReviewerSet
fromTable(com.google.common.collect.Table<ReviewerStateInternal,Account.Id,Instant> table)
int
hashCode()
String
toString()
-
-
-
Method Detail
-
fromApprovals
public static ReviewerSet fromApprovals(Iterable<PatchSetApproval> approvals)
-
fromTable
public static ReviewerSet fromTable(com.google.common.collect.Table<ReviewerStateInternal,Account.Id,Instant> table)
-
empty
public static ReviewerSet empty()
-
all
public com.google.common.collect.ImmutableSet<Account.Id> all()
-
byState
public com.google.common.collect.ImmutableSet<Account.Id> byState(ReviewerStateInternal state)
-
asTable
public com.google.common.collect.ImmutableTable<ReviewerStateInternal,Account.Id,Instant> asTable()
-
-