public class ReviewerSet extends Object
A given account may appear in multiple states and at different timestamps. No
reviewers with state ReviewerStateInternal.REMOVED
are ever exposed
by this interface.
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableSet<com.google.gerrit.reviewdb.client.Account.Id> |
all() |
com.google.common.collect.ImmutableTable<ReviewerStateInternal,com.google.gerrit.reviewdb.client.Account.Id,Timestamp> |
asTable() |
com.google.common.collect.ImmutableSet<com.google.gerrit.reviewdb.client.Account.Id> |
byState(ReviewerStateInternal state) |
static ReviewerSet |
empty() |
boolean |
equals(Object o) |
static ReviewerSet |
fromApprovals(Iterable<com.google.gerrit.reviewdb.client.PatchSetApproval> approvals) |
static ReviewerSet |
fromTable(com.google.common.collect.Table<ReviewerStateInternal,com.google.gerrit.reviewdb.client.Account.Id,Timestamp> table) |
int |
hashCode() |
String |
toString() |
public static ReviewerSet fromApprovals(Iterable<com.google.gerrit.reviewdb.client.PatchSetApproval> approvals)
public static ReviewerSet fromTable(com.google.common.collect.Table<ReviewerStateInternal,com.google.gerrit.reviewdb.client.Account.Id,Timestamp> table)
public static ReviewerSet empty()
public com.google.common.collect.ImmutableSet<com.google.gerrit.reviewdb.client.Account.Id> all()
public com.google.common.collect.ImmutableSet<com.google.gerrit.reviewdb.client.Account.Id> byState(ReviewerStateInternal state)
public com.google.common.collect.ImmutableTable<ReviewerStateInternal,com.google.gerrit.reviewdb.client.Account.Id,Timestamp> asTable()