| Modifier and Type | Field and Description |
|---|---|
int |
elementSize |
char[][] |
keyTable |
Object[] |
valueTable |
| Constructor and Description |
|---|
HashtableOfObject() |
HashtableOfObject(int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
Object |
clone() |
boolean |
containsKey(char[] key) |
Object |
get(char[] key) |
Object |
put(char[] key,
Object value) |
void |
putUnsafely(char[] key,
Object value)
Put a value at the index of the given using the local hash code computation.
|
Object |
removeKey(char[] key) |
int |
size() |
String |
toString() |
public char[][] keyTable
public Object[] valueTable
public int elementSize
public HashtableOfObject()
public HashtableOfObject(int size)
public void clear()
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic boolean containsKey(char[] key)
public Object get(char[] key)
public void putUnsafely(char[] key,
Object value)
Note that this is an unsafe put as there's no prior verification whether the given key already exists in the table or not.
key - The key of the table entryvalue - The value of the table entrypublic Object removeKey(char[] key)
public int size()
Copyright © 2015. All rights reserved.