|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.umd.cfar.lamp.viper.util.AbstractInterval
edu.umd.cfar.lamp.viper.util.SimpleInterval
A simple immutable Interval of Comparable objects.
| Constructor Summary | |
SimpleInterval(java.lang.Comparable start,
java.lang.Comparable end)
Constructs a new immutable interval |
|
| Method Summary | |
Interval |
change(java.lang.Comparable start,
java.lang.Comparable end)
Since an Interval is designed to be immutable, you need this thing to change the interval. |
java.lang.Comparable |
getEnd()
Gets the end of the interval, which is not an element of the interval. |
java.lang.Comparable |
getStart()
Gets the start of the interval. |
| Methods inherited from class edu.umd.cfar.lamp.viper.util.AbstractInterval |
contains, contains, contains, contains, equals, hashCode, intersects, intersects, isEmpty, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.umd.cfar.lamp.viper.util.Interval |
contains, contains, contains, intersects, intersects, isEmpty |
| Constructor Detail |
public SimpleInterval(java.lang.Comparable start,
java.lang.Comparable end)
start - the first element of the intervalend - the first element after the end of the interval| Method Detail |
public java.lang.Comparable getStart()
Interval
getStart in interface IntervalInterval.getStart()public java.lang.Comparable getEnd()
Interval
getEnd in interface IntervalInterval.getEnd()
public Interval change(java.lang.Comparable start,
java.lang.Comparable end)
Interval
change in interface Intervalchange in class AbstractIntervalstart - the start (inclusive)end - the end (exclusive)
Interval.change(java.lang.Comparable, java.lang.Comparable)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||