Interface OffsetValue<V>

    • Method Detail

      • getBasis

        V getBasis()
        Returns the basis from which the associated offset will be applied.
        Returns:
        the basis from which the associated offset will be applied.
      • get

        default V get()
        Returns the current value, computed by applying the current offset to the basis.
        Specified by:
        get in interface Supplier<V>
        Returns:
        the computed value
      • getOffset

        Offset<V> getOffset()
        The current offset.
        Returns:
        an offset
      • setOffset

        default void setOffset​(Offset<V> offset)
        Sets the current offset.
        Parameters:
        offset - an offset
      • rebase

        OffsetValue<V> rebase()
        Returns a new offset value based on the current value.
        Returns:
        a new offset value