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.
name, value| Modifier and Type | Method and Description |
|---|---|
static String |
canonicalize(Change.Status status) |
static Predicate<ChangeData> |
closed() |
boolean |
equals(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)
Does this predicate match this object?
|
static Predicate<ChangeData> |
open() |
static Predicate<ChangeData> |
parse(String value) |
String |
toString() |
nonegetField, getTypecopy, getOperator, getValueand, and, any, asMatchable, estimateCost, getChild, getChildCount, getChildren, getLeafCount, isMatchable, not, or, orpublic static String canonicalize(Change.Status status)
public static Predicate<ChangeData> parse(String value)
public static Predicate<ChangeData> open()
public static Predicate<ChangeData> closed()
public static ChangeStatusPredicate forStatus(Change.Status status)
public Change.Status getStatus()
public boolean match(ChangeData object)
Matchablepublic int getCost()
public int hashCode()
hashCode in class OperatorPredicate<ChangeData>public boolean equals(Object other)
equals in class OperatorPredicate<ChangeData>public String toString()
toString in class OperatorPredicate<ChangeData>