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 class
Filters 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 TypeMethodDescriptionboolean
contains0
(long t) Checks that [this.start, this.end) contains tlong
getEnd()
long
getStart()
boolean
hasEnd()
boolean
hasStart()
static TimeInterval
openEnd
(long start) static TimeInterval
openStart
(long end) creates a TimeInterval with no start but with an endvoid
setEnd
(long end) void
setStart
(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
-