Package com.yahoo.prelude.query
Class Limit
java.lang.Object
com.yahoo.prelude.query.Limit
An immutable numeric range limit which can be inclusive or exclusive
- Author:
- bratseth
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
Returns true if this limit includes its number, false if it excludes itboolean
boolean
isLargerOrEqualTo
(Limit other) boolean
isSmallerOrEqualTo
(Limit other) Returns the larger of this and the given limitReturns the smaller of this and the given limitnumber()
toString()
-
Field Details
-
NEGATIVE_INFINITY
-
POSITIVE_INFINITY
-
-
Constructor Details
-
Limit
-
-
Method Details
-
number
-
isInclusive
public boolean isInclusive()Returns true if this limit includes its number, false if it excludes it -
min
Returns the smaller of this and the given limit -
max
Returns the larger of this and the given limit -
isSmallerOrEqualTo
-
isLargerOrEqualTo
-
isInfinite
public boolean isInfinite() -
toString
-
equals
-
hashCode
public int hashCode()
-