Module org.jhotdraw8.icollection
Class AbstractReadOnlyMap<K,V>
java.lang.Object
org.jhotdraw8.icollection.readonly.AbstractReadOnlyMap<K,V>
- Type Parameters:
K- the key typeV- the value type
- All Implemented Interfaces:
Iterable<Map.Entry<K,,V>> ReadOnlyMap<K,V>
- Direct Known Subclasses:
ImmutableMapFacade
Abstract base class for
ReadOnlyMaps.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlyMap
asMap, characteristics, containsEntry, containsKey, containsValue, get, getOrDefault, isEmpty, iterator, readOnlyEntrySet, readOnlyKeySet, readOnlyValues, size, spliterator
-
Constructor Details
-
AbstractReadOnlyMap
public AbstractReadOnlyMap()Constructs a new instance.
-
-
Method Details
-
equals
Description copied from interface:ReadOnlyMapCompares the specified object with this map for equality.Returns
trueif the given object is also a read-only map and the two maps represent the same entries, ignorig the sequence of the map entries. -
hashCode
public int hashCode()Description copied from interface:ReadOnlyMapReturns the hash code value for this map. The hash code is the sum of the hash code of its entries. -
toString
-