|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MultiValued<K,V>
A MultiValued is a read-only data structure where multiple values are associated to the same key.
Method Summary | |
---|---|
boolean |
contains(K key)
Verifies the input key is contained in the collection. |
Iterable<Map.Entry<K,List<V>>> |
getAllEntries()
Returns an unmodifiable iterable instance over all stored entries. |
Set<K> |
getAllKeys()
Returns an unmodifiable set containing all the stored keys. |
V |
getFirstValue(K key)
Returns the first associated value to the given key, if found, null otherwise. |
List<V> |
getValues(K key)
Returns an unmodifiable list with all the associated values to the given key, if found, null otherwise. |
Method Detail |
---|
boolean contains(K key)
key
- the non null key to check
V getFirstValue(K key)
key
- the non null key for which retrieve the value
List<V> getValues(K key)
key
- the non null key for which retrieve the values
Set<K> getAllKeys()
Iterable<Map.Entry<K,List<V>>> getAllEntries()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |