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<Account.Id> |
all() |
com.google.common.collect.ImmutableTable<ReviewerStateInternal,Account.Id,Timestamp> |
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,Timestamp> table) |
int |
hashCode() |
String |
toString() |
public static ReviewerSet fromApprovals(Iterable<PatchSetApproval> approvals)
public static ReviewerSet fromTable(com.google.common.collect.Table<ReviewerStateInternal,Account.Id,Timestamp> table)
public static ReviewerSet empty()
public com.google.common.collect.ImmutableSet<Account.Id> all()
public com.google.common.collect.ImmutableSet<Account.Id> byState(ReviewerStateInternal state)
public com.google.common.collect.ImmutableTable<ReviewerStateInternal,Account.Id,Timestamp> asTable()