public class OrderedKeyValuePairCollection extends Object implements KeyValuePairCollection
EMPTY_COLLECTION
Constructor and Description |
---|
OrderedKeyValuePairCollection() |
Modifier and Type | Method and Description |
---|---|
void |
add(KeyValuePair pair) |
void |
addAll(Collection<KeyValuePair> pairs) |
boolean |
contains(KeyValuePair pair) |
boolean |
containsKey(KeyMatcher key) |
int |
delete(KeyMatcher keyMatcher) |
KeyValuePairCollection |
getAll(KeyMatcher keyMatcher) |
KeyValuePair |
getUnique(KeyMatcher keyMatcher) |
Iterator<KeyValuePair> |
iterator() |
Collection<String> |
keys() |
int |
size() |
void |
updateUnique(KeyMatcher keyMatcher,
KeyValuePair pair) |
Collection<String> |
values(KeyMatcher key) |
public Iterator<KeyValuePair> iterator()
iterator
in interface Iterable<KeyValuePair>
iterator
in interface KeyValuePairCollection
public Collection<String> keys()
keys
in interface KeyValuePairCollection
public Collection<String> values(KeyMatcher key)
values
in interface KeyValuePairCollection
public void add(KeyValuePair pair)
add
in interface KeyValuePairCollection
public void addAll(Collection<KeyValuePair> pairs)
addAll
in interface KeyValuePairCollection
public KeyValuePair getUnique(KeyMatcher keyMatcher) throws NonUniqueException
getUnique
in interface KeyValuePairCollection
NonUniqueException
public boolean containsKey(KeyMatcher key)
containsKey
in interface KeyValuePairCollection
public KeyValuePairCollection getAll(KeyMatcher keyMatcher)
getAll
in interface KeyValuePairCollection
public void updateUnique(KeyMatcher keyMatcher, KeyValuePair pair)
updateUnique
in interface KeyValuePairCollection
public boolean contains(KeyValuePair pair)
contains
in interface KeyValuePairCollection
public int delete(KeyMatcher keyMatcher)
delete
in interface KeyValuePairCollection
public int size()
size
in interface KeyValuePairCollection
Copyright © 2004–2016 52north.org. All rights reserved.