Class TimelineList.TimeSegment
java.lang.Object
com.inductiveautomation.ignition.common.util.TimelineList.TimeSegment
- All Implemented Interfaces:
 Serializable,Comparable<TimelineList<T>.TimeSegment>
- Enclosing class:
 - TimelineList<T>
 
public class TimelineList.TimeSegment
extends Object
implements Comparable<TimelineList<T>.TimeSegment>, Serializable
A time segment covers a span of time. Implements comparable for sorting, sorts by start time desc
- See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionTimeSegment(long start, long end, T value) TimeSegment(long start, T value) Initializes the segment going from start until Long.MAX_VALUE * - 
Method Summary
Modifier and TypeMethodDescriptionintbooleancontains(long time) booleanendsBefore(long time) longlonggetEnd()longgetStart()getValue()voidsetEnd(long end) voidsetStart(long start) booleanstartsAfter(long time) toString() 
- 
Constructor Details
- 
TimeSegment
Initializes the segment going from start until Long.MAX_VALUE * - 
TimeSegment
 
 - 
 - 
Method Details
- 
getDuration
public long getDuration() - 
getStart
public long getStart() - 
getEnd
public long getEnd() - 
setStart
public void setStart(long start)  - 
setEnd
public void setEnd(long end)  - 
getValue
 - 
contains
public boolean contains(long time)  - 
startsAfter
public boolean startsAfter(long time)  - 
endsBefore
public boolean endsBefore(long time)  - 
compareTo
- Specified by:
 compareToin interfaceComparable<TimelineList<T>.TimeSegment>
 - 
toString
 
 -