com.xmlmind.util
Class IdentityLinearHashtable<K,V>

java.lang.Object
  extended by com.xmlmind.util.LinearHashtable<K,V>
      extended by com.xmlmind.util.IdentityLinearHashtable<K,V>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public final class IdentityLinearHashtable<K,V>
extends LinearHashtable<K,V>

Identical to LinearHashtable except that keys are hashed using System.identityHashCode(java.lang.Object) and compared using ==.

This class is not thread-safe.

See Also:
Serialized Form

Constructor Summary
IdentityLinearHashtable()
           
IdentityLinearHashtable(int capacity)
           
 
Method Summary
 V get(K key)
           
 V put(K key, V value)
           
 V remove(K key)
           
 
Methods inherited from class com.xmlmind.util.LinearHashtable
clear, clone, contains, containsKey, copyElementsInto, copyKeysInto, elements, entries, getKeyValueTable, isEmpty, keys, size, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdentityLinearHashtable

public IdentityLinearHashtable()

IdentityLinearHashtable

public IdentityLinearHashtable(int capacity)
Method Detail

get

public V get(K key)
Overrides:
get in class LinearHashtable<K,V>

put

public V put(K key,
             V value)
Overrides:
put in class LinearHashtable<K,V>

remove

public V remove(K key)
Overrides:
remove in class LinearHashtable<K,V>