Interface Setter<S,​V>

    • Method Detail

      • set

        void set​(S storage,
                 @NullOr V updated)
        Sets the value within the provided storage to the input value or removes it if it's null.
        Parameters:
        storage - the storage
        updated - the value to set or null to remove
      • remove

        default void remove​(S storage)
        Removes the value from the provided storage. This is equivalent to calling set(storage, value) with a null value.
        Parameters:
        storage - the storage