com.github.andrewoma.dexx.collection.internal.base
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:
- Map<K,V>, Traversable<Pair<K,V>>, 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>
| 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 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 |
AbstractMap
public AbstractMap()
keys
@NotNull
public Iterable<K> keys()
- Description copied from interface:
Map
- Returns the keys for this map.
- Specified by:
keys in interface Map<K,V>
values
@NotNull
public Iterable<V> values()
- Description copied from interface:
Map
- Returns the values for this map.
- Specified by:
values in interface Map<K,V>
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
asMap
@NotNull
public Map<K,V> asMap()
- Description copied from interface:
Map
- Returns an immutable view of this map as an instance of
Map.
- Specified by:
asMap in interface Map<K,V>
Copyright © 2014. All Rights Reserved.