Interface MfMap

  • All Known Implementing Classes:
    Manifests

    public interface MfMap
    Map of manifest attributes.
    Since:
    1.1
    See Also:
    Manifests
    • Method Detail

      • size

        int size()
        Get size of attributes map.
        Returns:
        Size of attributes map
        Since:
        2.0
      • isEmpty

        boolean isEmpty()
        Check if attributes map is empty.
        Returns:
        True if attributes map is empty and false otherwise
        Since:
        2.0
      • containsKey

        boolean containsKey​(String key)
        Check if attributes map contains the given key.
        Parameters:
        key - Attribute name
        Returns:
        True if attributes map contains the given key and false otherwise
        Since:
        2.0
      • containsValue

        boolean containsValue​(String value)
        Check if attributes map contains the given value.
        Parameters:
        value - Attribute value
        Returns:
        True if attributes map contains the given value and false otherwise
        Since:
        2.0
      • get

        String get​(String key)
        Get attribute value by its key.
        Parameters:
        key - Attribute name
        Returns:
        Value of the attribute and null if attribute not found
      • getAsMap

        Map<String,​String> getAsMap()
        Get a copy of attributes map.
        Returns:
        Copy of attributes map
        Since:
        2.0
      • keySet

        Set<String> keySet()
        Get a copy of a set of attributes keys.
        Returns:
        Copy of a set of attributes keys
        Since:
        2.0
      • append

        void append​(Mfs mfs)
             throws IOException
        Append this collection of MANIFEST.MF files. This method changes the original instance.
        Parameters:
        mfs - Content to append
        Throws:
        IOException - If fails on I/O problem
        Since:
        2.0.0