TimeSegment

public class TimeSegment<T extends Comparable<T>, V> implements Sample<T, V>

Immutable concrete implementation of Sample. Note that for space efficiency reasons the segment does not have an ending, as this would be a replication of data with the contiguous segment. Conversely, chains of segments, or TimeChain, might have an ending.

See also

Constructors

Link copied to clipboard
public void TimeSegment(@NotNull() @NotNull() T start, @NotNull() @NotNull() V value)

Properties

Link copied to clipboard
public final T start
Link copied to clipboard
public final V value

Functions

Link copied to clipboard
public int compareTo(Sample<T, V> other)
public abstract int compareTo(T p)
Link copied to clipboard
public boolean equals(Object o)
Link copied to clipboard
public T getStart()
Link copied to clipboard
public V getValue()
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public String toString()