|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KeySetMap<K,V>
The Interface KeySetMap. It wrappes a Map with a key and values. The values are Sets. So you can put in one key more unique values.
Method Summary | |
---|---|
void |
add(K key,
V value)
Adds the value in the Set from the key. |
void |
add(java.util.Map<? extends K,? extends java.util.Set<V>> keyListMap)
Adds a Map to the main Map. |
boolean |
containsKey(K key)
Contains key. |
java.util.Set<V> |
get(K key)
Gets the Set with the values from the given key. |
java.util.Set<K> |
getKeys()
Gets the keys. |
int |
getSize()
Gets the size. |
boolean |
isEmpty()
Checks if is empty. |
java.util.Set<V> |
remove(K key)
Removes the Set from the given key. |
void |
removeAll(java.util.Collection<K> keys)
Removes all keys from the Map from the given Collection. |
Method Detail |
---|
void add(K key, V value)
key
- the keyvalue
- the valuevoid add(java.util.Map<? extends K,? extends java.util.Set<V>> keyListMap)
keyListMap
- the key list mapboolean containsKey(K key)
key
- the key
java.util.Set<V> get(K key)
key
- the key
java.util.Set<K> getKeys()
int getSize()
boolean isEmpty()
java.util.Set<V> remove(K key)
key
- the key
void removeAll(java.util.Collection<K> keys)
keys
- the keys
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |