public static class Range.Bound<T extends Comparable<T>> extends Object
unbounded,
including its value or its value.| Constructor and Description |
|---|
Bound() |
| Modifier and Type | Method and Description |
|---|---|
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. |
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.
|
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.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.