Class AbstractMap<K,V>
- java.lang.Object
-
- AbstractMap<K,V>
-
- All Implemented Interfaces:
- Map<K,V>
- Direct Known Subclasses:
- AbstractHashMap, AbstractSortedMap, UnsortedTableMap
public abstract class AbstractMap<K,V> extends java.lang.Object implements Map<K,V>
An abstract base class to ease the implementation of the Map interface. The base class provides three means of support: 1) It provides an isEmpty implementation based upon the abstract size() method. 2) It defines a protected MapEntry class as a concrete implementation of the entry interface
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description protected static class
AbstractMap.MapEntry<K,V>
A concrete implementation of the Entry interface to be used within a Map implementation.
-
Constructor Summary
Constructors Constructor and Description AbstractMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
isEmpty()
Tests whether the map is empty.
-