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>>
public class AndCardinalPredicate<T> extends AndPredicate<T> implements HasCardinality
-
-
Constructor Summary
Constructors Constructor Description AndCardinalPredicate(Collection<? extends 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.int
getCardinality()
-
Methods inherited from class com.google.gerrit.index.query.AndPredicate
compare, equals, getChild, getChildCount, getChildren, getCost, hashCode, isMatchable, match, toString
-
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getLeafCount, not, or, or
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
AndCardinalPredicate
public AndCardinalPredicate(Collection<? extends Predicate<T>> that)
-
-
Method Detail
-
copy
public Predicate<T> copy(Collection<? extends Predicate<T>> children)
Description copied from class:Predicate
Create a copy of this predicate, with new children.- Overrides:
copy
in classAndPredicate<T>
-
getCardinality
public int getCardinality()
- Specified by:
getCardinality
in interfaceHasCardinality
- Returns:
- an estimate of the number of results a source can return.
-
-