Package com.google.gerrit.index.query
Class NotPredicate<T>
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<T>
-
- com.google.gerrit.index.query.NotPredicate<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNotPredicate(Predicate<T> that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicate<T>copy(Collection<? extends Predicate<T>> children)Create a copy of this predicate, with new children.booleanequals(Object other)Predicate<T>getChild(int i)Same asgetChildren().get(i)intgetChildCount()Same asgetChildren().size()List<Predicate<T>>getChildren()Get the children of this predicate, if any.intgetCost()inthashCode()booleanisMatchable()booleanmatch(T object)Does this predicate match this object?StringtoString()-
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getLeafCount, not, or, or
-
-
-
-
Method Detail
-
getChildren
public final List<Predicate<T>> getChildren()
Description copied from class:PredicateGet the children of this predicate, if any.- Overrides:
getChildrenin classPredicate<T>
-
getChildCount
public final int getChildCount()
Description copied from class:PredicateSame asgetChildren().size()- Overrides:
getChildCountin classPredicate<T>
-
getChild
public final Predicate<T> getChild(int i)
Description copied from class:PredicateSame asgetChildren().get(i)
-
copy
public Predicate<T> copy(Collection<? extends Predicate<T>> children)
Description copied from class:PredicateCreate a copy of this predicate, with new children.
-
isMatchable
public boolean isMatchable()
- Overrides:
isMatchablein classPredicate<T>
-
match
public boolean match(T object)
Description copied from interface:MatchableDoes this predicate match this object?
-
getCost
public int getCost()
-
-