net.walend.collection.test
Class NullValueHashMap
java.lang.Object
|
+--net.walend.collection.AbstractHashMap
|
+--net.walend.collection.SoftHashMap
|
+--net.walend.collection.test.NullValueHashMap
- All Implemented Interfaces:
- java.lang.Cloneable, HasState, Map, MutableMap, java.io.Serializable
- public class NullValueHashMap
- extends SoftHashMap
This MutableHashMap's values are always set to null, to stress test code that relies on a SoftHashMap.
- Since:
- 20010827
- Author:
- David Walend
Nested classes inherited from class net.walend.collection.SoftHashMap |
|
Fields inherited from class net.walend.collection.SoftHashMap |
|
Fields inherited from interface net.walend.collection.Map |
EMPTY |
Methods inherited from class net.walend.collection.SoftHashMap |
clear, containsAll, containsKey, containsValue, get, getGuard, getJavaMap, getKeys, getValues, isEmpty, keyIterator, put, putAll, remove, sameContentsAs, sameStateAs, size, sweepNulls, valueIterator |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NullValueHashMap
public NullValueHashMap()
NullValueHashMap
public NullValueHashMap(int capacity)
NullValueHashMap
public NullValueHashMap(int capacity,
float loadFactor)
NullValueHashMap
public NullValueHashMap(Identitor identitor)
NullValueHashMap
public NullValueHashMap(Identitor identitor,
int capacity)
NullValueHashMap
public NullValueHashMap(Identitor identitor,
int capacity,
float loadFactor)
NullValueHashMap
public NullValueHashMap(java.util.Map orig)
NullValueHashMap
public NullValueHashMap(Map orig)
newEntry
protected AbstractHashMap.Entry newEntry(int hash,
java.lang.Object key,
java.lang.Object value,
AbstractHashMap.Entry next)
- Overridden to return entries with null reference values.
- Overrides:
newEntry
in class SoftHashMap
Copyright (c) 2000, 2001, David Walend