Modifier | Constructor and Description |
---|---|
protected |
AndPredicate(java.util.Collection<? extends Predicate<T>> that) |
protected |
AndPredicate(Predicate<T>... that) |
Modifier and Type | Method and Description |
---|---|
Predicate<T> |
copy(java.util.Collection<? extends Predicate<T>> children)
Create a copy of this predicate, with new children.
|
boolean |
equals(java.lang.Object other) |
Predicate<T> |
getChild(int i)
Same as
getChildren().get(i) |
int |
getChildCount()
Same as
getChildren().size() |
java.util.List<Predicate<T>> |
getChildren()
Get the children of this predicate, if any.
|
int |
getCost() |
int |
hashCode() |
boolean |
isMatchable() |
boolean |
match(T object)
Does this predicate match this object?
|
java.lang.String |
toString() |
and, and, any, asMatchable, estimateCost, not, or, or
public final java.util.List<Predicate<T>> getChildren()
Predicate
getChildren
in class Predicate<T>
public final int getChildCount()
Predicate
getChildren().size()
getChildCount
in class Predicate<T>
public final Predicate<T> getChild(int i)
Predicate
getChildren().get(i)
public Predicate<T> copy(java.util.Collection<? extends Predicate<T>> children)
Predicate
public boolean isMatchable()
isMatchable
in class Predicate<T>
public boolean match(T object) throws com.google.gwtorm.server.OrmException
Matchable
public int getCost()
public java.lang.String toString()
toString
in class java.lang.Object