Class AbstractMap<K,V>
- java.lang.Object
-
- com.github.andrewoma.dexx.collection.internal.base.AbstractTraversable<E>
-
- com.github.andrewoma.dexx.collection.internal.base.AbstractIterable<Pair<K,V>>
-
- com.github.andrewoma.dexx.collection.internal.base.AbstractMap<K,V>
-
- All Implemented Interfaces:
Iterable<Pair<K,V>>
,Map<K,V>
,Traversable<Pair<K,V>>
,java.lang.Iterable<Pair<K,V>>
- Direct Known Subclasses:
AbstractSortedMap
,DerivedKeyHashMap
,HashMap
,ListMap
public abstract class AbstractMap<K,V> extends AbstractIterable<Pair<K,V>> implements Map<K,V>
-
-
Constructor Summary
Constructors Constructor Description AbstractMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<K,V>
asMap()
Returns an immutable view of this map as an instance ofMap
.boolean
equals(java.lang.Object o)
int
hashCode()
Iterable<K>
keys()
Returns the keys for this map.Iterable<V>
values()
Returns the values for this map.-
Methods inherited from class com.github.andrewoma.dexx.collection.internal.base.AbstractIterable
forEach
-
Methods inherited from class com.github.andrewoma.dexx.collection.internal.base.AbstractTraversable
isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.andrewoma.dexx.collection.Map
containsKey, get, put, remove
-
Methods inherited from interface com.github.andrewoma.dexx.collection.Traversable
forEach, isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet
-
-
-
-
Method Detail
-
keys
@NotNull public Iterable<K> keys()
Description copied from interface:Map
Returns the keys for this map.
-
values
@NotNull public Iterable<V> values()
Description copied from interface:Map
Returns the values for this map.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-