@Beta
public final class ClosedOpenRange
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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<java.lang.Integer> range)
Creates a range from a Guava's range.
|
java.lang.String |
toString() |
int |
upperBound()
Returns the upper bound.
|
public static ClosedOpenRange of(com.google.common.collect.Range<java.lang.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()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object