com.github.andrewoma.dexx.collection.internal.base
Class AbstractMap<K,V>

java.lang.Object
  extended by com.github.andrewoma.dexx.collection.internal.base.AbstractTraversable<E>
      extended by com.github.andrewoma.dexx.collection.internal.base.AbstractIterable<Pair<K,V>>
          extended by 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>


Constructor Summary
AbstractMap()
           
 
Method Summary
 Map<K,V> asMap()
          Returns an immutable view of this map as an instance of Map.
 boolean equals(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.Iterable
iterator
 
Methods inherited from interface com.github.andrewoma.dexx.collection.Traversable
forEach, isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet
 

Constructor Detail

AbstractMap

public AbstractMap()
Method Detail

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.