Interface Metadata

    • Method Detail

      • get

        String get​(String key)
        Get the value according the key.
        Parameters:
        key - the key
        Returns:
        the value
      • getTrimmed

        String getTrimmed​(String key)
        Get the trimmed value according the key.
        Parameters:
        key - the key
        Returns:
        the value
      • set

        void set​(String key,
                 String value)
        Set the value according the key.
        Parameters:
        key - the key
        value - the value
      • set

        void set​(String key,
                 List<String> value)
        Set the value as a list according the key.
        Parameters:
        key - the key
        value - the value as a list
      • size

        int size()
        Get the number of metadata.
        Returns:
        the number of metadata
      • isEmpty

        boolean isEmpty()
        Test if there is no metadata.
        Returns:
        true if there is no metadata
      • contains

        boolean contains​(String key)
        Test if the key is in md.
        Parameters:
        key - the key
        Returns:
        true if the key is in md
      • getAsList

        List<String> getAsList​(String key)
        Get the value according the key as a list.
        Parameters:
        key - the key
        Returns:
        the value as a list
      • getAsBoolean

        boolean getAsBoolean​(String key)
        Get the value according the key as a boolean.
        Parameters:
        key - the key
        Returns:
        the value as a boolean
      • keySet

        Set<String> keySet()
        Get the keys of the metadata
        Returns:
        a set with the keys of the metadata
      • remove

        void remove​(String key)
        Remove the value according the key.
        Parameters:
        key - the key