Class AbstractMap<K,V>

All Implemented Interfaces:
Iterable<Pair<K,V>>, 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 Details

    • AbstractMap

      public AbstractMap()
  • Method Details

    • 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>