org.n52.security.common.util
Class OrderedKeyValuePairCollection

java.lang.Object
  extended by org.n52.security.common.util.OrderedKeyValuePairCollection
All Implemented Interfaces:
Iterable<KeyValuePair>, KeyValuePairCollection

public class OrderedKeyValuePairCollection
extends Object
implements KeyValuePairCollection


Field Summary
 
Fields inherited from interface org.n52.security.common.util.KeyValuePairCollection
EMPTY_COLLECTION
 
Constructor Summary
OrderedKeyValuePairCollection()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderedKeyValuePairCollection

public OrderedKeyValuePairCollection()
Method Detail

iterator

public Iterator<KeyValuePair> iterator()
Specified by:
iterator in interface Iterable<KeyValuePair>
Specified by:
iterator in interface KeyValuePairCollection

keys

public Collection<String> keys()
Specified by:
keys in interface KeyValuePairCollection

values

public Collection<String> values(KeyMatcher key)
Specified by:
values in interface KeyValuePairCollection

add

public void add(KeyValuePair pair)
Specified by:
add in interface KeyValuePairCollection

addAll

public void addAll(Collection<KeyValuePair> pairs)
Specified by:
addAll in interface KeyValuePairCollection

getUnique

public KeyValuePair getUnique(KeyMatcher keyMatcher)
                       throws NonUniqueException
Specified by:
getUnique in interface KeyValuePairCollection
Throws:
NonUniqueException

containsKey

public boolean containsKey(KeyMatcher key)
Specified by:
containsKey in interface KeyValuePairCollection

getAll

public KeyValuePairCollection getAll(KeyMatcher keyMatcher)
Specified by:
getAll in interface KeyValuePairCollection

updateUnique

public void updateUnique(KeyMatcher keyMatcher,
                         KeyValuePair pair)
Specified by:
updateUnique in interface KeyValuePairCollection

contains

public boolean contains(KeyValuePair pair)
Specified by:
contains in interface KeyValuePairCollection

delete

public int delete(KeyMatcher keyMatcher)
Specified by:
delete in interface KeyValuePairCollection

size

public int size()
Specified by:
size in interface KeyValuePairCollection


Copyright © 2004–2014 52north.org. All rights reserved.