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 Class Summary
private  class NullValueHashMap.NullEntry
          Entries for the hash map.
 
Nested classes inherited from class net.walend.collection.SoftHashMap
 
Nested classes inherited from class net.walend.collection.AbstractHashMap
 
Field Summary
 
Fields inherited from class net.walend.collection.SoftHashMap
 
Fields inherited from class net.walend.collection.AbstractHashMap
 
Fields inherited from interface net.walend.collection.Map
EMPTY
 
Constructor Summary
NullValueHashMap()
           
NullValueHashMap(Identitor identitor)
           
NullValueHashMap(Identitor identitor, int capacity)
           
NullValueHashMap(Identitor identitor, int capacity, float loadFactor)
           
NullValueHashMap(int capacity)
           
NullValueHashMap(int capacity, float loadFactor)
           
NullValueHashMap(java.util.Map orig)
           
NullValueHashMap(Map orig)
           
 
Method Summary
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.
 
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 net.walend.collection.AbstractHashMap
capacity, clone, getIdentitor, getPrincipleInterface, loadFactor, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.walend.collection.Map
getIdentitor
 
Methods inherited from interface net.walend.collection.HasState
getPrincipleInterface
 

Constructor Detail

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)
Method Detail

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