Class HashtableOfObject
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.util.HashtableOfObject
- All Implemented Interfaces:
Cloneable
Hashtable of {char[] --> Object }
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()booleancontainsKey(char[] key) get(char[] key) voidputUnsafely(char[] key, Object value) Put a value at the index of the given using the local hash code computation.removeKey(char[] key) intsize()toString()
-
Field Details
-
keyTable
public char[][] keyTable -
valueTable
-
elementSize
public int elementSize
-
-
Constructor Details
-
HashtableOfObject
public HashtableOfObject() -
HashtableOfObject
public HashtableOfObject(int size)
-
-
Method Details
-
clear
public void clear() -
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
containsKey
public boolean containsKey(char[] key) -
get
-
put
-
putUnsafely
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
-
size
public int size() -
toString
-