@Beta public final class ClosedOpenRange extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
int |
lowerBound()
Returns the lower bound.
|
static ClosedOpenRange |
of(int lowerBound,
int upperBound)
Create a range with a lower bound and an upper bound.
|
static ClosedOpenRange |
of(com.google.common.collect.Range<Integer> range)
Creates a range from a Guava's range.
|
String |
toString() |
int |
upperBound()
Returns the upper bound.
|
public static ClosedOpenRange of(com.google.common.collect.Range<Integer> range)
range
- Guava's rangepublic static ClosedOpenRange of(int lowerBound, int upperBound)
lowerBound
- lower bound (inclusive)upperBound
- upper bound (exclusive)public int lowerBound()
public int upperBound()