Klasse HashtableOfObject
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.util.HashtableOfObject
- Alle implementierten Schnittstellen:
Cloneable
Hashtable of {char[] --> Object }
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungintchar[][]static final intMax array size accepted by JVMObject[] -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic intcalculateNewSize(int currentSize) Tries to double the number of given elements but returnsMAX_ARRAY_SIZE- 2 in case new value would overflowvoidclear()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()inttoString()
-
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() -
clone
- Setzt außer Kraft:
clonein KlasseObject- Löst aus:
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.
- Parameter:
key- The key of the table entryvalue- The value of the table entry
-
removeKey
-
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
-