Interface MutableProperties

  • All Superinterfaces:
    Properties


    public interface MutableProperties
    extends Properties
    Base mutable properties interface from which all other mutable properties extend.
    • Method Detail

      • set

        void set​(String key,
                 Object value)
        Set the property value for the specified key
        Parameters:
        key - the key
        value - the value
      • remove

        Optional<Object> remove​(String key)
        Remove the property for the specified key, and return it's object (if it exists)
        Parameters:
        key - the key to remove
        Returns:
        object which was present at that key (if it existed)
      • set

        default void set​(Map<String,Object> properties)
        Set the current properties to be equal to the map
        Parameters:
        properties - map to set
      • removeAll

        default void removeAll​()
        Return a map of all properties
      • add

        default void add​(Map<String,Object> properties)
        Add all properties from the given map, overwriting values where they already exist
        Parameters:
        properties - the map to add
      • remove

        default void remove​(Collection<String> keys)
        Remove all properties that match the given keys
        Parameters:
        keys - the keys to remove