org.aspectj.org.eclipse.jdt.internal.compiler.util
Class HashtableOfObject
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.util.HashtableOfObject
- All Implemented Interfaces:
- java.lang.Cloneable
public final class HashtableOfObject
- extends java.lang.Object
- implements java.lang.Cloneable
Hashtable of {char[] --> Object }
|
Method Summary |
void |
clear()
|
java.lang.Object |
clone()
|
boolean |
containsKey(char[] key)
|
java.lang.Object |
get(char[] key)
|
java.lang.Object |
put(char[] key,
java.lang.Object value)
|
void |
putUnsafely(char[] key,
java.lang.Object value)
Put a value at the index of the given using the local hash code computation. |
java.lang.Object |
removeKey(char[] key)
|
int |
size()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
keyTable
public char[][] keyTable
valueTable
public java.lang.Object[] valueTable
elementSize
public int elementSize
HashtableOfObject
public HashtableOfObject()
HashtableOfObject
public HashtableOfObject(int size)
clear
public void clear()
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
containsKey
public boolean containsKey(char[] key)
get
public java.lang.Object get(char[] key)
put
public java.lang.Object put(char[] key,
java.lang.Object value)
putUnsafely
public void putUnsafely(char[] key,
java.lang.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 java.lang.Object removeKey(char[] key)
size
public int size()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object