Class OffsetValue.DefaultOffsetValue<O,​V>

    • Method Detail

      • getBasis

        public V getBasis()
        Description copied from interface: OffsetValue
        Returns the basis from which the associated offset will be applied.
        Specified by:
        getBasis in interface OffsetValue<O>
        Returns:
        the basis from which the associated offset will be applied.
      • set

        public void set​(V value)
        Description copied from interface: Value
        Updates the referenced value.
        Specified by:
        set in interface Value<O>
        Parameters:
        value - the new value.
      • setOffset

        public void setOffset​(Offset<V> offset)
        Description copied from interface: OffsetValue
        Sets the current offset.
        Specified by:
        setOffset in interface OffsetValue<O>
        Parameters:
        offset - an offset
      • rebase

        public OffsetValue<V> rebase()
        Description copied from interface: OffsetValue
        Returns a new offset value based on the current value.
        Specified by:
        rebase in interface OffsetValue<O>
        Returns:
        a new offset value