org.infinispan.util
Class AbstractMap<K,V>

java.lang.Object
  extended by org.infinispan.util.AbstractMap<K,V>
All Implemented Interfaces:
Map<K,V>
Direct Known Subclasses:
FastCopyHashMap

public abstract class AbstractMap<K,V>
extends Object
implements Map<K,V>

Similar to the JDK's AbstractMap, this provides common functionality for custom map implementations. Unlike JDK's AbstractMap, there is no support for null keys.

Since:
4.0
Author:
Manik Surtani

Nested Class Summary
protected static class AbstractMap.SimpleEntry<K,V>
           
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  Set<Map.Entry<K,V>> entrySet
           
protected  Set<K> keySet
           
protected  Collection<V> values
           
 
Constructor Summary
AbstractMap()
           
 
Method Summary
protected static void assertKeyNotNull(Object key)
           
protected static boolean eq(Object o1, Object o2)
           
protected static int hash(Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Field Detail

entrySet

protected transient Set<Map.Entry<K,V>> entrySet

keySet

protected transient Set<K> keySet

values

protected transient Collection<V> values
Constructor Detail

AbstractMap

public AbstractMap()
Method Detail

hash

protected static int hash(Object key)

eq

protected static boolean eq(Object o1,
                            Object o2)

assertKeyNotNull

protected static void assertKeyNotNull(Object key)

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.