Package com.google.gerrit.index.query
Class AndCardinalPredicate<T>
java.lang.Object
com.google.gerrit.index.query.Predicate<T>
com.google.gerrit.index.query.AndPredicate<T>
com.google.gerrit.index.query.AndCardinalPredicate<T>
- All Implemented Interfaces:
HasCardinality,Matchable<T>,Comparator<Predicate<T>>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.index.query.Predicate
Predicate.Any<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy(Collection<? extends Predicate<T>> children) Create a copy of this predicate, with new children.intReturns an estimate of the number of results a source can return.Methods inherited from class com.google.gerrit.index.query.AndPredicate
compare, equals, getChild, getChildCount, getChildren, getCost, hashCode, isMatchable, match, toStringMethods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, not, or, or, supportedForQueriesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface com.google.gerrit.index.query.Matchable
matchResult
-
Constructor Details
-
AndCardinalPredicate
-
-
Method Details
-
copy
Description copied from class:PredicateCreate a copy of this predicate, with new children.- Overrides:
copyin classAndPredicate<T>
-
getCardinality
public int getCardinality()Description copied from interface:HasCardinalityReturns an estimate of the number of results a source can return.- Specified by:
getCardinalityin interfaceHasCardinality
-