Interface Map<K,V>
- All Known Subinterfaces:
SortedMap<K,V>
- All Known Implementing Classes:
AbstractMap,AbstractSortedMap,DerivedKeyHashMap,HashMap,ListMap,ListMap.Node,TreeMap
Map defines the interface for maps that associate keys with values.-
Method Summary
Modifier and TypeMethodDescriptionasMap()Returns an immutable view of this map as an instance ofMap.booleancontainsKey(K key) Returns true if this map contains the specified key.Returns the value associated with the key ornullif the no value exists with the key specified.keys()Returns the keys for this map.Returns a map with the value specified associated to the key specified.Returns a map with the value associated with the key removed if it exists.values()Returns the values for this map.Methods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.github.andrewoma.dexx.collection.Traversable
forEach, isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet
-
Method Details
-
put
Returns a map with the value specified associated to the key specified.If value already exists for the key, it will be replaced.
-
get
Returns the value associated with the key ornullif the no value exists with the key specified. -
remove
Returns a map with the value associated with the key removed if it exists. -
keys
Returns the keys for this map. -
values
Returns the values for this map. -
containsKey
Returns true if this map contains the specified key. -
asMap
Returns an immutable view of this map as an instance ofMap.
-