|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.odell.glazedlists.jfreechart.DefaultValueSegment<T,V>
public class DefaultValueSegment<T extends Comparable,V extends Comparable>
The default implementation of the ValueSegment interface.
Note:
DefaultValueSegments must be immutable objects. Callers are strongly
encouraged to construct DefaultValueSegments with defensive copies
of the start, end, and value arguments if they are not themselves immutable.
| Constructor Summary | |
|---|---|
DefaultValueSegment(T start,
T end,
V value)
Create a DefaultValueSegment indicating the value exists
between the start and end on some continuum of
Comparable objects. |
|
| Method Summary | |
|---|---|
int |
compareTo(ValueSegment<T,V> o)
DefaultValueSegments are compared by value, then by segment start, then by segment end. |
T |
getEnd()
Returns the value marking the end of this segment. |
T |
getStart()
Returns the value marking the start of this segment. |
V |
getValue()
Returns the value observed within this segment. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultValueSegment(T start,
T end,
V value)
value exists
between the start and end on some continuum of
Comparable objects.
start - the beginning of the segmentend - the end of the segmentvalue - the value observed between start and
end
IllegalArgumentException - if start or
end is null| Method Detail |
|---|
public T getStart()
getStart in interface ValueSegment<T extends Comparable,V extends Comparable>public T getEnd()
getEnd in interface ValueSegment<T extends Comparable,V extends Comparable>public V getValue()
getValue in interface ValueSegment<T extends Comparable,V extends Comparable>public int compareTo(ValueSegment<T,V> o)
compareTo in interface Comparable<ValueSegment<T extends Comparable,V extends Comparable>>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||