Package org.yamcs.utils
Class TimeInterval
java.lang.Object
org.yamcs.utils.TimeInterval
- Direct Known Subclasses:
ParameterArchive.Partition,PartitionManager.Interval
Time interval where both ends can be open.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFilters an input iterator to the intervals that match the given timeInterval -
Constructor Summary
ConstructorsConstructorDescriptionCreates a TimeInterval with no start and no endTimeInterval(long start, long end) TimeInterval(TimeInterval other) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains0(long t) Checks that [this.start, this.end) contains tlonggetEnd()longgetStart()booleanhasEnd()booleanhasStart()static TimeIntervalopenEnd(long start) static TimeIntervalopenStart(long end) creates a TimeInterval with no start but with an endvoidsetEnd(long end) voidsetStart(long start) toString()
-
Constructor Details
-
TimeInterval
public TimeInterval(long start, long end) -
TimeInterval
public TimeInterval()Creates a TimeInterval with no start and no end -
TimeInterval
-
-
Method Details
-
openStart
creates a TimeInterval with no start but with an end -
openEnd
-
hasStart
public boolean hasStart() -
hasEnd
public boolean hasEnd() -
setStart
public void setStart(long start) -
getStart
public long getStart() -
setEnd
public void setEnd(long end) -
getEnd
public long getEnd() -
contains0
public boolean contains0(long t) Checks that [this.start, this.end) contains t -
toString
-
toStringEncoded
-