java.lang.Object
io.lettuce.core.Range.Boundary<T>
public static class Range.Boundary<T> extends Object
- Author:
- Mark Paluch
-
Method Summary
Modifier and Type Method Description booleanequals(Object o)static <T> Range.Boundary<T>excluding(T value)Create aRange.Boundarybased on thevaluethat excludes the value when comparing ranges.TgetValue()inthashCode()static <T> Range.Boundary<T>including(T value)Create aRange.Boundarybased on thevaluethat includes the value when comparing ranges.booleanisBounded()booleanisIncluding()booleanisUnbounded()StringtoString()static <T> Range.Boundary<T>unbounded()Creates an unbounded (infinite) boundary that marks the beginning/end of the range.
-
Method Details
-
unbounded
Creates an unbounded (infinite) boundary that marks the beginning/end of the range.- Type Parameters:
T- inferred type.- Returns:
- the unbounded boundary.
-
including
Create aRange.Boundarybased on thevaluethat includes the value when comparing ranges. Greater or equals, less or equals. but not Greater or equal, less or equal tovalue.- Type Parameters:
T- value type.- Parameters:
value- must not benull.- Returns:
- the
Range.Boundary.
-
excluding
Create aRange.Boundarybased on thevaluethat excludes the value when comparing ranges. Greater or less tovaluebut not greater or equal, less or equal.- Type Parameters:
T- value type.- Parameters:
value- must not benull.- Returns:
- the
Range.Boundary.
-
getValue
- Returns:
- the value
-
isIncluding
public boolean isIncluding()- Returns:
trueif the boundary includes the value.
-
isUnbounded
public boolean isUnbounded()- Returns:
trueif the bound is unbounded.- Since:
- 6.0
-
isBounded
public boolean isBounded()- Returns:
trueif the bound is unbounded.- Since:
- 6.0
-
equals
-
hashCode
public int hashCode() -
toString
-