public class Interval<V extends Comparable<V>> extends Object
Constructor and Description |
---|
Interval(V start,
V end)
Constructs a new range.
|
Modifier and Type | Method and Description |
---|---|
boolean |
endInclusive() |
boolean |
equals(Object other) |
V |
getEnd() |
V |
getStart() |
int |
hashCode() |
boolean |
inInterval(Object obj) |
static <V extends Comparable<V>> |
of(V start,
V end)
Constructs a new range.
|
boolean |
startInclusive() |
String |
toString() |
public static final <V extends Comparable<V>> Interval<V> of(V start, V end)
V
- Type of Rangestart
- Starting attribute of rangeend
- Ending attribute of rangepublic V getEnd()
public V getStart()
public boolean endInclusive()
public boolean startInclusive()
public boolean inInterval(Object obj)
Copyright © 2012-2013. All Rights Reserved.