Interface TemporalPoint<V, T extends TemporalPointType>
- Type Parameters:
V- the value typeT- the point type
- All Superinterfaces:
Comparable<TemporalPoint<V,T>>
- All Known Subinterfaces:
AggregatedPoint<V,A>, AtomicPoint<V>, ChangePoint<V>, ComplexPoint<V>, DataPoint<V>
- All Known Implementing Classes:
AggregatedDataPoint, AnnotationChangePoint, AnnotationPoint, MetadataPoint, SourceChangePoint
public sealed interface TemporalPoint<V, T extends TemporalPointType>
extends Comparable<TemporalPoint<V,T>>
permits ChangePoint<V>, ComplexPoint<V>, DataPoint<V>
A point in time carrying a value, a source and a type, comparable by timestamp. Permitted
subtypes are
ChangePoint, ComplexPoint and DataPoint.-
Method Details
-
value
V value()Returns the point's value. -
timestamp
Instant timestamp()Returns the point's timestamp. -
source
QualifiedPath source()Returns the point's source path. -
type
T type()Returns the point's type. -
compareTo
Compares by timestamp, earliest first.- Specified by:
compareToin interfaceComparable<V>
-