|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Map<K,V>
Map defines the interface for maps that associate keys with values.
| Method Summary | |
|---|---|
Map<K,V> |
asMap()
Returns an immutable view of this map as an instance of Map. |
boolean |
containsKey(K key)
Returns true if this map contains the specified key. |
V |
get(K key)
Returns the value associated with the key or null if the no value exists with the key specified. |
Iterable<K> |
keys()
Returns the keys for this map. |
Map<K,V> |
put(K key,
V value)
Returns a map with the value specified associated to the key specified. |
Map<K,V> |
remove(K key)
Returns a map with the value associated with the key removed if it exists. |
Iterable<V> |
values()
Returns the values for this map. |
| Methods inherited from interface com.github.andrewoma.dexx.collection.Iterable |
|---|
iterator |
| Methods inherited from interface com.github.andrewoma.dexx.collection.Traversable |
|---|
forEach, isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet |
| Method Detail |
|---|
@NotNull
Map<K,V> put(@NotNull
K key,
V value)
If value already exists for the key, it will be replaced.
@Nullable
V get(@NotNull
K key)
null if the no value exists with the key specified.
@NotNull
Map<K,V> remove(@NotNull
K key)
@NotNull Iterable<K> keys()
@NotNull Iterable<V> values()
boolean containsKey(@NotNull
K key)
@NotNull Map<K,V> asMap()
Map.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||