Class AbstractMetadata

    • Constructor Detail

      • AbstractMetadata

        public AbstractMetadata()
    • Method Detail

      • get

        public String get​(String key)
        Description copied from interface: Metadata
        Get the value according the key.
        Specified by:
        get in interface Metadata
        Parameters:
        key - the key
        Returns:
        the value
      • getTrimmed

        public String getTrimmed​(String key)
        Description copied from interface: Metadata
        Get the trimmed value according the key.
        Specified by:
        getTrimmed in interface Metadata
        Parameters:
        key - the key
        Returns:
        the value
      • set

        public void set​(String key,
                        String value)
        Description copied from interface: Metadata
        Set the value according the key.
        Specified by:
        set in interface Metadata
        Parameters:
        key - the key
        value - the value
      • set

        public void set​(String key,
                        List<String> value)
        Description copied from interface: Metadata
        Set the value as a list according the key.
        Specified by:
        set in interface Metadata
        Parameters:
        key - the key
        value - the value as a list
      • size

        public int size()
        Description copied from interface: Metadata
        Get the number of metadata.
        Specified by:
        size in interface Metadata
        Returns:
        the number of metadata
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: Metadata
        Test if there is no metadata.
        Specified by:
        isEmpty in interface Metadata
        Returns:
        true if there is no metadata
      • contains

        public boolean contains​(String key)
        Description copied from interface: Metadata
        Test if the key is in md.
        Specified by:
        contains in interface Metadata
        Parameters:
        key - the key
        Returns:
        true if the key is in md
      • getAsList

        public List<String> getAsList​(String key)
        Description copied from interface: Metadata
        Get the value according the key as a list.
        Specified by:
        getAsList in interface Metadata
        Parameters:
        key - the key
        Returns:
        the value as a list
      • getAsBoolean

        public boolean getAsBoolean​(String key)
        Description copied from interface: Metadata
        Get the value according the key as a boolean.
        Specified by:
        getAsBoolean in interface Metadata
        Parameters:
        key - the key
        Returns:
        the value as a boolean
      • keySet

        public Set<String> keySet()
        Description copied from interface: Metadata
        Get the keys of the metadata
        Specified by:
        keySet in interface Metadata
        Returns:
        a set with the keys of the metadata
      • remove

        public void remove​(String key)
        Description copied from interface: Metadata
        Remove the value according the key.
        Specified by:
        remove in interface Metadata
        Parameters:
        key - the key
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object