Klasse HashtableOfObject

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.util.HashtableOfObject

public final class HashtableOfObject extends Object
Hashtable of {char[] --> Object }
  • Felddetails

    • MAX_ARRAY_SIZE

      public static final int MAX_ARRAY_SIZE
      Max array size accepted by JVM
      Siehe auch:
    • keyTable

      public char[][] keyTable
    • valueTable

      public Object[] valueTable
    • elementSize

      public int elementSize
  • Konstruktordetails

  • Methodendetails

    • clear

      public void clear()
    • containsKey

      public boolean containsKey(char[] key)
    • get

      public Object get(char[] key)
    • put

      public Object put(char[] key, Object value)
    • putUnsafely

      public void putUnsafely(char[] key, 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.

      Parameter:
      key - The key of the table entry
      value - The value of the table entry
    • calculateNewSize

      public static int calculateNewSize(int currentSize)
      Tries to double the number of given elements but returns MAX_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

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object