Class MapMutableProperties

  • All Implemented Interfaces:
    io.annot8.api.properties.MutableProperties, io.annot8.api.properties.Properties

    public class MapMutableProperties
    extends Object
    implements io.annot8.api.properties.MutableProperties
    Implementation of MutableProperties interface using an in-memory HashMap to store the properties.
    • Constructor Detail

      • MapMutableProperties

        public MapMutableProperties()
        Create a new instance with no key-values
      • MapMutableProperties

        public MapMutableProperties​(io.annot8.api.properties.Properties properties)
        Create a new instance with key-values from an existing Properties object *
        Parameters:
        properties - properties to copy
      • MapMutableProperties

        public MapMutableProperties​(Map<String,​Object> properties)
        Create a new instance with key-values from an existing Map
        Parameters:
        properties - properties to copy
    • Method Detail

      • getAll

        public Map<String,​Object> getAll()
        Specified by:
        getAll in interface io.annot8.api.properties.Properties
      • set

        public void set​(String key,
                        Object value)
        Specified by:
        set in interface io.annot8.api.properties.MutableProperties
      • remove

        public Optional<Object> remove​(String key)
        Specified by:
        remove in interface io.annot8.api.properties.MutableProperties
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object