public class KeyValueSet extends Object implements Iterable<KeyValue<?>>, Serializable
| Constructor and Description |
|---|
KeyValueSet() |
| Modifier and Type | Method and Description |
|---|---|
KeyValueSet |
add(KeyValue<?>... keyValues)
Add key value(s).
|
KeyValueSet |
clear()
Clear entries.
|
boolean |
containsKey(String key) |
List<KeyValue<?>> |
get(org.apache.commons.collections.Predicate filter) |
KeyValue<?> |
get(String key) |
KeyValue<?> |
getRequired(String key) |
boolean |
isEmpty() |
Iterator<KeyValue<?>> |
iterator() |
List<String> |
keys() |
List<KeyValue<?>> |
keyValues() |
KeyValue<?> |
remove(String key) |
int |
size() |
Map<String,Object> |
toMap() |
String |
toMultiLineString() |
String |
toString() |
List<Object> |
values() |
void |
walk(org.apache.commons.collections.Closure handler)
Walk entries.
|
void |
walk(org.apache.commons.collections.Closure handler,
org.apache.commons.collections.Predicate filter)
Walk entries.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic KeyValueSet add(KeyValue<?>... keyValues)
keyValues - key values to add.public Iterator<KeyValue<?>> iterator()
iterator in interface Iterable<KeyValue<?>>Iterable.iterator()public List<KeyValue<?>> get(org.apache.commons.collections.Predicate filter) throws IllegalArgumentException
filter - filter to use.IllegalArgumentException - if filter is null.public KeyValue<?> getRequired(String key)
key - the key.public void walk(org.apache.commons.collections.Closure handler,
org.apache.commons.collections.Predicate filter)
throws IllegalArgumentException
handler - handler to call.filter - filter to use.IllegalArgumentException - if closure or filter is null.public void walk(org.apache.commons.collections.Closure handler)
throws IllegalArgumentException
handler - handler to call.IllegalArgumentException - if handler is null.public boolean containsKey(String key)
key - key to test.public int size()
public boolean isEmpty()
public KeyValueSet clear()
public String toMultiLineString()
public String toString()
toString in class ObjectObject.toString()Copyright © 2018 Hitachi Vantara. All rights reserved.