Class CompactTimeline<Timestamp extends Comparable<Timestamp>>
java.lang.Object
tools.refinery.interpreter.matchers.util.timeline.Timeline<Timestamp>
tools.refinery.interpreter.matchers.util.timeline.CompactTimeline<Timestamp>
A compact timeline may cosist of an arbitrary amount of moments.
It is backed by an
ArrayList
.- Since:
- 2.4
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetSigned
(int index) getUnsigned
(int index) boolean
isEmpty()
boolean
int
size()
Methods inherited from class tools.refinery.interpreter.matchers.util.timeline.Timeline
mergeAdditive, mergeMultiplicative, toString
-
Field Details
-
elements
-
-
Method Details
-
getSigned
- Specified by:
getSigned
in classTimeline<Timestamp extends Comparable<Timestamp>>
-
getUnsigned
- Specified by:
getUnsigned
in classTimeline<Timestamp extends Comparable<Timestamp>>
-
size
public int size()- Specified by:
size
in classTimeline<Timestamp extends Comparable<Timestamp>>
-
isPresentAtInfinity
public boolean isPresentAtInfinity()- Specified by:
isPresentAtInfinity
in classTimeline<Timestamp extends Comparable<Timestamp>>
-
asChangeSequence
- Specified by:
asChangeSequence
in classTimeline<Timestamp extends Comparable<Timestamp>>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in classTimeline<Timestamp extends Comparable<Timestamp>>
-