public final class ChangeStatusPredicate extends ChangeIndexPredicate
Change.Status
.
The actual name of this operator can differ, it usually comes as status:
but may also
be is:
to help do-what-i-meanery for end-users searching for changes. Either operator
name has the same meaning.
Status names are looked up by prefix case-insensitively.
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
canonicalize(Change.Status status) |
static com.google.gerrit.index.query.Predicate<ChangeData> |
closed() |
boolean |
equals(java.lang.Object other) |
static ChangeStatusPredicate |
forStatus(Change.Status status) |
int |
getCost() |
Change.Status |
getStatus()
Get the status for this predicate.
|
int |
hashCode() |
boolean |
match(ChangeData object) |
static com.google.gerrit.index.query.Predicate<ChangeData> |
open() |
static com.google.gerrit.index.query.Predicate<ChangeData> |
parse(java.lang.String value) |
java.lang.String |
toString() |
copy, getOperator, getValue
public static java.lang.String canonicalize(Change.Status status)
public static com.google.gerrit.index.query.Predicate<ChangeData> parse(java.lang.String value)
public static com.google.gerrit.index.query.Predicate<ChangeData> open()
public static com.google.gerrit.index.query.Predicate<ChangeData> closed()
public static ChangeStatusPredicate forStatus(Change.Status status)
public Change.Status getStatus()
public boolean match(ChangeData object) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public int getCost()
public int hashCode()
hashCode
in class com.google.gerrit.index.query.OperatorPredicate<ChangeData>
public boolean equals(java.lang.Object other)
equals
in class com.google.gerrit.index.query.OperatorPredicate<ChangeData>
public java.lang.String toString()
toString
in class com.google.gerrit.index.query.OperatorPredicate<ChangeData>