Class TimeSpanMap.Transition<S>

  • Type Parameters:
    S - Type of the data.
    All Implemented Interfaces:
    TimeStamped
    Enclosing class:
    TimeSpanMap<T>

    public static class TimeSpanMap.Transition<S>
    extends Object
    implements TimeStamped
    Class holding transition times.

    This data type is dual to TimeSpanMap.Span, it is focused on one transition date, and gives access to surrounding valid data whereas TimeSpanMap.Span is focused on one valid data, and gives access to surrounding transition dates.

    • Method Detail

      • previous

        public TimeSpanMap.Transition<S> previous()
        Get the previous transition.
        Returns:
        previous transition, or null if this transition was the first one
        Since:
        11.1
      • next

        public TimeSpanMap.Transition<S> next()
        Get the next transition.
        Returns:
        next transition, or null if this transition was the last one
        Since:
        11.1
      • getBefore

        public S getBefore()
        Get the entry valid before transition.
        Returns:
        entry valid before transition
        See Also:
        getSpanBefore()
      • getAfter

        public S getAfter()
        Get the entry valid after transition.
        Returns:
        entry valid after transition
        See Also:
        getSpanAfter()