ca.odell.glazedlists.jfreechart
Interface ValueSegment<T extends Comparable,V extends Comparable>

All Superinterfaces:
Comparable<ValueSegment<T,V>>
All Known Implementing Classes:
DefaultValueSegment

public interface ValueSegment<T extends Comparable,V extends Comparable>
extends Comparable<ValueSegment<T,V>>

A ValueSegment represents a stable value within a segment of Comparable values. For example, instances could represent the average temperature each hour of the day. The start and end values of the ValueSegment would be the Timestamps of the start and end of the hour and the value would be the Float representing the average temperature for that hour.

Note: ValueSegments must be immutable objects.

Author:
James Lemieux

Method Summary
 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.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getStart

T getStart()
Returns the value marking the start of this segment.


getEnd

T getEnd()
Returns the value marking the end of this segment.


getValue

V getValue()
Returns the value observed within this segment.



Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by James Lemieux at 2009-01-25 18:40