|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfclown.util.math.Interval<T>
public final class Interval<T extends Comparable<? super T>>
An interval of comparable objects.
Constructor Summary | |
---|---|
Interval(T low,
T high)
|
|
Interval(T low,
T high,
boolean lowInclusive,
boolean highInclusive)
|
Method Summary | |
---|---|
boolean |
contains(T value)
Gets whether the specified value is contained within this interval. |
T |
getHigh()
Gets the higher interval endpoint. |
T |
getLow()
Gets the lower interval endpoint. |
boolean |
isHighInclusive()
Gets whether the higher endpoint is inclusive. |
boolean |
isLowInclusive()
Gets whether the lower endpoint is inclusive. |
void |
setHigh(T value)
|
void |
setHighInclusive(boolean value)
|
void |
setLow(T value)
|
void |
setLowInclusive(boolean value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Interval(T low, T high)
public Interval(T low, T high, boolean lowInclusive, boolean highInclusive)
Method Detail |
---|
public boolean contains(T value)
value
- Value to check for containment.public T getHigh()
public T getLow()
public boolean isHighInclusive()
public boolean isLowInclusive()
public void setHigh(T value)
getHigh()
public void setHighInclusive(boolean value)
isHighInclusive()
public void setLow(T value)
getLow()
public void setLowInclusive(boolean value)
isLowInclusive()
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |