Package com.jcabi.manifests
Interface MfMap
- All Known Implementing Classes:
Manifests
public interface MfMap
Map of manifest attributes.
- Since:
- 1.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidAppend this collection of MANIFEST.MF files.booleancontainsKey(String key) Check if attributes map contains the given key.booleancontainsValue(String value) Check if attributes map contains the given value.Get attribute value by its key.getAsMap()Get a copy of attributes map.booleanisEmpty()Check if attributes map is empty.keySet()Get a copy of a set of attributes keys.intsize()Get size of attributes map.
-
Method Details
-
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
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
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
Get attribute value by its key.- Parameters:
key- Attribute name- Returns:
- Value of the attribute, and null if attribute not found
-
getAsMap
Get a copy of attributes map.- Returns:
- Copy of attributes map
- Since:
- 2.0
-
keySet
Get a copy of a set of attributes keys.- Returns:
- Copy of a set of attributes keys
- Since:
- 2.0
-
append
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
-