| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this data structure contains the specified key, false otherwise.the key whose presence to check. May be key)null.Returns |
| public < type of the value. V> void | forEach(final BiConsumer<String, ? super V>
The action to be performed for each key-value pair in this collection. action)Performs the given action for each key-value pair in this data structure until all entries have been processed or the action throws an exception. |
| public < type of the value. V, type of the third parameter. S> void | forEach(final TriConsumer<String, ? super V, S>
The action to be performed for each key-value pair in this collection. action, final S the object to be passed as the third parameter to each invocation on the specified
triconsumer. state)Performs the given action for each key-value pair in this data structure until all entries have been processed or the action throws an exception. |
| public <V> V | |
| public boolean | Returns: true if this collection is empty (size is zero).Returns |
| public int | Returns: the number of key-value pairs in this collection.Returns the number of key-value pairs in this collection. |
| public Map | Returns: a mutable copy of this data structure inMap<String, String> form.Returns a non- |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(String key) Returns
| |
| forEach | back to summary |
|---|---|
| public <V> void forEach(final BiConsumer<String, ? super V> action) Performs the given action for each key-value pair in this data structure until all entries have been processed or the action throws an exception.
Some implementations may not support structural modifications (adding new elements or removing elements) while
iterating over the contents. In such implementations, attempts to add or remove elements from the
| |
| forEach | back to summary |
|---|---|
| public <V, S> void forEach(final TriConsumer<String, ? super V, S> action, final S state) Performs the given action for each key-value pair in this data structure until all entries have been processed or the action throws an exception. The third parameter lets callers pass in a stateful object to be modified with the key-value pairs, so the TriConsumer implementation itself can be stateless and potentially reusable.
Some implementations may not support structural modifications (adding new elements or removing elements) while
iterating over the contents. In such implementations, attempts to add or remove elements from the
| |
| getValue | back to summary |
|---|---|
| public <V> V getValue(final String key) Returns the value for the specified key, or
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Returns
| |
| size | back to summary |
|---|---|
| public int size() Returns the number of key-value pairs in this collection.
| |
| toMap | back to summary |
|---|---|
| public Map Returns a non- | |