Interface TemporalPoint<V, T extends TemporalPointType>

Type Parameters:
V - the value type
T - 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 Summary

    Modifier and Type
    Method
    Description
    default int
    compareTo(@NonNull TemporalPoint<V,T> other)
    Compares by timestamp, earliest first.
    Returns the point's source path.
    Returns the point's timestamp.
    Returns the point's type.
    Returns the point's value.
  • 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

      default int compareTo(@NonNull TemporalPoint<V,T> other)
      Compares by timestamp, earliest first.
      Specified by:
      compareTo in interface Comparable<V>