Package com.jcabi.manifests
Interface MfMap
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
append(Mfs mfs)
Append this collection of MANIFEST.MF files.boolean
containsKey(String key)
Check if attributes map contains the given key.boolean
containsValue(String value)
Check if attributes map contains the given value.String
get(String key)
Get attribute value by its key.Map<String,String>
getAsMap()
Get a copy of attributes map.boolean
isEmpty()
Check if attributes map is empty.Set<String>
keySet()
Get a copy of a set of attributes keys.int
size()
Get size of attributes map.
-
-
-
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
-
-