public static final class Range.Bound<T extends Comparable<T>> extends Object
unbounded
,
including its value
or its value
.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Range.Bound<Double> |
exclusive(double value)
Creates a boundary excluding
value . |
static Range.Bound<Float> |
exclusive(float value)
Creates a boundary excluding
value . |
static Range.Bound<Integer> |
exclusive(int value)
Creates a boundary excluding
value . |
static Range.Bound<Long> |
exclusive(long value)
Creates a boundary excluding
value . |
static <T extends Comparable<T>> |
exclusive(T value)
Creates a boundary excluding
value . |
Optional<T> |
getValue() |
int |
hashCode() |
static Range.Bound<Double> |
inclusive(double value)
Creates a boundary including
value . |
static Range.Bound<Float> |
inclusive(float value)
Creates a boundary including
value . |
static Range.Bound<Integer> |
inclusive(int value)
Creates a boundary including
value . |
static Range.Bound<Long> |
inclusive(long value)
Creates a boundary including
value . |
static <T extends Comparable<T>> |
inclusive(T value)
Creates a boundary including
value . |
boolean |
isBounded()
Returns whether this boundary is bounded.
|
boolean |
isInclusive() |
String |
toString() |
static <T extends Comparable<T>> |
unbounded()
Creates an unbounded
Range.Bound . |
public static <T extends Comparable<T>> Range.Bound<T> unbounded()
Range.Bound
.public boolean isBounded()
public static <T extends Comparable<T>> Range.Bound<T> inclusive(T value)
value
.value
- must not be null.public static Range.Bound<Integer> inclusive(int value)
value
.value
- must not be null.public static Range.Bound<Long> inclusive(long value)
value
.value
- must not be null.public static Range.Bound<Float> inclusive(float value)
value
.value
- must not be null.public static Range.Bound<Double> inclusive(double value)
value
.value
- must not be null.public static <T extends Comparable<T>> Range.Bound<T> exclusive(T value)
value
.value
- must not be null.public static Range.Bound<Integer> exclusive(int value)
value
.value
- must not be null.public static Range.Bound<Long> exclusive(long value)
value
.value
- must not be null.public static Range.Bound<Float> exclusive(float value)
value
.value
- must not be null.public static Range.Bound<Double> exclusive(double value)
value
.value
- must not be null.public boolean isInclusive()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.