| Modifier and Type | Class and Description |
|---|---|
static class |
Range.Boundary<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> Range<T> |
create(T lower,
T upper)
Create a new range from
lower and upper boundary values. |
boolean |
equals(Object o) |
static <T> Range<T> |
from(Range.Boundary<T> lower,
Range.Boundary<T> upper)
Create a new range from
lower and upper boundaries. |
Range.Boundary<T> |
getLower() |
Range.Boundary<T> |
getUpper() |
Range<T> |
gt(T lower)
Greater than
lower. |
Range<T> |
gte(T lower)
Greater than or equals
lower. |
int |
hashCode() |
Range<T> |
lt(T upper)
Less than
lower. |
Range<T> |
lte(T upper)
Less than or equals
lower. |
String |
toString() |
static <T> Range<T> |
unbounded() |
public static <T> Range<T> create(T lower, T upper)
lower and upper boundary values. Both values are included (greater than or equals
and less than or equals).T - value type.lower - lower boundary, must not be null.upper - upper boundary, must not be null.Range.public static <T> Range<T> from(Range.Boundary<T> lower, Range.Boundary<T> upper)
lower and upper boundaries.T - value type.lower - lower boundary, must not be null.upper - upper boundary, must not be null.Range.public static <T> Range<T> unbounded()
T - value type.Range with lower and upper set to Range.Boundary.unbounded().public Range<T> gte(T lower)
lower.lower - the lower boundary value.this Range with lower applied.public Range<T> gt(T lower)
lower.lower - the lower boundary value.this Range with lower applied.public Range<T> lte(T upper)
lower.upper - the upper boundary value.this Range with upper applied.public Range<T> lt(T upper)
lower.upper - the upper boundary value.this Range with upper applied.public Range.Boundary<T> getLower()
public Range.Boundary<T> getUpper()
Copyright © 2021 lettuce.io. All rights reserved.