public class Range<Type extends Comparable<Type>> extends Object implements Bounded<Type>
| Constructor and Description |
|---|
Range(Type lowerBound,
Type upperBound) |
| Modifier and Type | Method and Description |
|---|---|
Type |
getLowerBound()
Returns the lower bound specified for this object.
|
Type |
getUpperBound()
Returns the upper bound specified for this object.
|
static <Type extends Comparable<Type>> |
of(Type bound) |
static <Type extends Comparable<Type>> |
of(Type lowerBound,
Type upperBound) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassertIfValueInRange, isInRangepublic static <Type extends Comparable<Type>> Range<Type> of(Type lowerBound, Type upperBound)
public static <Type extends Comparable<Type>> Range<Type> of(Type bound)
public Type getLowerBound()
BoundedgetLowerBound in interface Bounded<Type extends Comparable<Type>>public Type getUpperBound()
BoundedgetUpperBound in interface Bounded<Type extends Comparable<Type>>Copyright © 2017. All rights reserved.