net.hblok.util
Class Range<T extends Comparable<? super T>>
java.lang.Object
net.hblok.util.Range<T>
public class Range<T extends Comparable<? super T>>
- extends Object
For some ideas, see:
http://www.mozilla.org/projects/blackwood/java-util/api/org/mozilla/util/Range.html
- Author:
- Havard Rast Blok
|
Constructor Summary |
Range(T start,
T end)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
start
protected T extends Comparable<? super T> start
end
protected T extends Comparable<? super T> end
Range
public Range(T start,
T end)
contains
public boolean contains(T point)
contains
public boolean contains(Range<T> other)
isAfter
public boolean isAfter(T point)
isBefore
public boolean isBefore(T point)
getEnd
public T getEnd()
- Returns:
- the end
setEnd
public void setEnd(T end)
- Parameters:
end - the end to set
getStart
public T getStart()
- Returns:
- the start
setStart
public void setStart(T start)
- Parameters:
start - the start to set