Klasse HashtableOfObject
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.util.HashtableOfObject
Hashtable of {char[] --> Object }
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungint
char[][]
static final int
Max array size accepted by JVMObject[]
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic int
calculateNewSize
(int currentSize) Tries to double the number of given elements but returnsMAX_ARRAY_SIZE
- 2 in case new value would overflowvoid
clear()
boolean
containsKey
(char[] key) get
(char[] key) void
putUnsafely
(char[] key, Object value) Put a value at the index of the given using the local hash code computation.int
size()
int
toString()
-
Felddetails
-
MAX_ARRAY_SIZE
public static final int MAX_ARRAY_SIZEMax array size accepted by JVM- Siehe auch:
-
keyTable
public char[][] keyTable -
valueTable
-
elementSize
public int elementSize
-
-
Konstruktordetails
-
HashtableOfObject
public HashtableOfObject() -
HashtableOfObject
public HashtableOfObject(int size) - Parameter:
size
- preferred table size- Löst aus:
NegativeArraySizeException
- if size is negativeOutOfMemoryError
- if size exceedsMAX_ARRAY_SIZE
-
-
Methodendetails
-
clear
public void clear() -
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.
- Parameter:
key
- The key of the table entryvalue
- The value of the table entry
-
calculateNewSize
public static int calculateNewSize(int currentSize) Tries to double the number of given elements but returnsMAX_ARRAY_SIZE
- 2 in case new value would overflow- Gibt zurück:
- new map size that fits to JVM limits or throws an error
-
storageSize
public int storageSize() -
size
public int size() -
toString
-