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.OperatorPredicatename, value
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedIntegerRangePredicate(FieldDef<T,Integer> type, String value)
 - 
Method SummaryAll 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.IndexPredicategetField, getType
 - 
Methods inherited from class com.google.gerrit.index.query.OperatorPredicatecopy, equals, getOperator, getValue, hashCode, toString
 - 
Methods inherited from class com.google.gerrit.index.query.Predicateand, and, any, asMatchable, estimateCost, getChild, getChildCount, getChildren, getLeafCount, isMatchable, not, or, or
 
- 
 
- 
- 
- 
Constructor Detail- 
IntegerRangePredicateprotected IntegerRangePredicate(FieldDef<T,Integer> type, String value) throws QueryParseException - Throws:
- QueryParseException
 
 
- 
 - 
Method Detail- 
matchpublic boolean match(T object) 
 - 
getMinimumValuepublic int getMinimumValue() Return the minimum value of this predicate's range, inclusive.
 - 
getMaximumValuepublic int getMaximumValue() Return the maximum value of this predicate's range, inclusive.
 
- 
 
-