public class ReviewerSet
extends java.lang.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,java.sql.Timestamp> |
asTable() |
com.google.common.collect.ImmutableSet<Account.Id> |
byState(ReviewerStateInternal state) |
static ReviewerSet |
empty() |
boolean |
equals(java.lang.Object o) |
static ReviewerSet |
fromApprovals(java.lang.Iterable<PatchSetApproval> approvals) |
static ReviewerSet |
fromTable(com.google.common.collect.Table<ReviewerStateInternal,Account.Id,java.sql.Timestamp> table) |
int |
hashCode() |
java.lang.String |
toString() |
public static ReviewerSet fromApprovals(java.lang.Iterable<PatchSetApproval> approvals)
public static ReviewerSet fromTable(com.google.common.collect.Table<ReviewerStateInternal,Account.Id,java.sql.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,java.sql.Timestamp> asTable()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object