org.eclipse.jdt.internal.compiler.util
Class HashtableOfObject
java.lang.Object
org.eclipse.jdt.internal.compiler.util.HashtableOfObject
- All Implemented Interfaces:
- Cloneable
public final class HashtableOfObject
- extends Object
- implements Cloneable
Hashtable of {char[] --> Object }
keyTable
public char[][] keyTable
valueTable
public Object[] valueTable
elementSize
public int elementSize
HashtableOfObject
public HashtableOfObject()
HashtableOfObject
public HashtableOfObject(int size)
clear
public void clear()
clone
public Object clone()
throws CloneNotSupportedException
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException
containsKey
public boolean containsKey(char[] key)
get
public Object get(char[] key)
put
public Object put(char[] key,
Object value)
putUnsafely
public void putUnsafely(char[] key,
Object value)
- Put a value at the index of the given using the local hash code computation.
Note that this is an unsafe put as there's no prior verification whether
the given key already exists in the table or not.
- Parameters:
key
- The key of the table entryvalue
- The value of the table entry
removeKey
public Object removeKey(char[] key)
size
public int size()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012. All Rights Reserved.