Interface DefaultAdaptedValue<S,​O,​V>

    • Method Detail

      • of

        static <S,​O,​V> DefaultAdaptedValue<S,​O,​V> of​(V def,
                                                                             AdaptedValue<S,​O,​V> value)
        Creates a new DefaultAdaptedValue by delegating to the provided arguments. Getting the value will always deserialize from storage, and setting the value will always serialize into storage.
        Type Parameters:
        S - storage type
        O - output type
        V - value type
        Parameters:
        value - an existing key value implementation that gets and sets the value from storage in the original 'output' type
        Returns:
        a new instance composed of the arguments