Class KeyValueRegistry<K,V>
- java.lang.Object
-
- net.anwiba.commons.utilities.registry.KeyValueRegistry<K,V>
-
- All Implemented Interfaces:
IKeyValueRegistry<K,V>
public class KeyValueRegistry<K,V> extends java.lang.Object implements IKeyValueRegistry<K,V>
-
-
Constructor Summary
Constructors Constructor Description KeyValueRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(K key)Vget(K key)V[]getItems(java.util.Comparator<K> comparator, java.lang.Class<K> keyClazz, java.lang.Class<V> valueClazz)booleanisEmpty()voidregister(K key, V value)voidremove(K key)
-
-
-
Method Detail
-
register
public void register(K key, V value)
- Specified by:
registerin interfaceIKeyValueRegistry<K,V>
-
contains
public boolean contains(K key)
- Specified by:
containsin interfaceIKeyValueRegistry<K,V>
-
getItems
public V[] getItems(java.util.Comparator<K> comparator, java.lang.Class<K> keyClazz, java.lang.Class<V> valueClazz)
- Specified by:
getItemsin interfaceIKeyValueRegistry<K,V>
-
remove
public void remove(K key)
- Specified by:
removein interfaceIKeyValueRegistry<K,V>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceIKeyValueRegistry<K,V>
-
-