|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated public interface MultiMap<K,V>
A read-nly Map from a key to multiple values. Order is significant among values, and null values are allowed, although null keys are not.
Method Summary | |
---|---|
boolean |
contains(K k1,
V k2)
Deprecated. Checks if the map contains the given key(s), also extending the search to including the sub collection. |
boolean |
containsKey(K k)
Deprecated. Checks if the map contains the given key. |
Set<Map.Entry<K,List<V>>> |
entrySet()
Deprecated. The complete read-only entry set. |
List<V> |
get(K k)
Deprecated. Returns the elements indexed by the provided key |
V |
getFirst(K k)
Deprecated. Gets the first value if any, or null. |
Set<K> |
keySet()
Deprecated. Returns the keys of type K. |
int |
size()
Deprecated. Returns the size of the map. |
Method Detail |
---|
Set<K> keySet()
List<V> get(K k)
k
- key for the values
boolean containsKey(K k)
k
- key to test
boolean contains(K k1, V k2)
k1
- key from top collectionk2
- key (value) from inner collection
V getFirst(K k)
This is useful when you know the given key only has one value and you'd like to get to that value.
k
- key for the values
Set<Map.Entry<K,List<V>>> entrySet()
Set
of Map.Entry
of entriesint size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |