Package com.google.gerrit.index.query
Class IntegerRangePredicate<T>
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<T>
-
- com.google.gerrit.index.query.OperatorPredicate<I>
-
- com.google.gerrit.index.query.IndexPredicate<T>
-
- com.google.gerrit.index.query.IntegerRangePredicate<T>
-
- Direct Known Subclasses:
IntegerRangeChangePredicate
public abstract class IntegerRangePredicate<T> extends IndexPredicate<T>
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.index.query.OperatorPredicate
name, value
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIntegerRangePredicate(FieldDef<T,Integer> type, String value)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetMaximumValue()Return the maximum value of this predicate's range, inclusive.intgetMinimumValue()Return the minimum value of this predicate's range, inclusive.protected abstract IntegergetValueInt(T object)booleanmatch(T object)-
Methods inherited from class com.google.gerrit.index.query.IndexPredicate
getField, getType
-
Methods inherited from class com.google.gerrit.index.query.OperatorPredicate
copy, equals, getOperator, getValue, hashCode, toString
-
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getChild, getChildCount, getChildren, getLeafCount, isMatchable, not, or, or
-
-
-
-
Constructor Detail
-
IntegerRangePredicate
protected IntegerRangePredicate(FieldDef<T,Integer> type, String value) throws QueryParseException
- Throws:
QueryParseException
-
-
Method Detail
-
match
public boolean match(T object)
-
getMinimumValue
public int getMinimumValue()
Return the minimum value of this predicate's range, inclusive.
-
getMaximumValue
public int getMaximumValue()
Return the maximum value of this predicate's range, inclusive.
-
-