java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.codegen.LongCache

public class LongCache extends Object
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    long[]
     
    int[]
     
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    Constructs a new, empty hashtable.
    LongCache(int initialCapacity)
    Constructs a new, empty hashtable with the specified initial capacity.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    Clears the hash table so that it has no more elements in it.
    boolean
    containsKey(long key)
    Returns true if the collection contains an element for the key.
    int
    hash(long key)
    Return a hashcode for the value of the key parameter.
    int
    put(long key, int value)
    Puts the specified element into the hashtable, using the specified key.
    int
    putIfAbsent(long key, int value)
    Puts the specified element into the hashtable, using the specified key.
    int
    Returns the number of elements contained in the hashtable.
    Converts to a rather lengthy String.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Felddetails

    • keyTable

      public long[] keyTable
    • valueTable

      public int[] valueTable
  • Konstruktordetails

    • LongCache

      public LongCache()
      Constructs a new, empty hashtable. A default capacity and load factor is used. Note that the hashtable will automatically grow when it gets full.
    • LongCache

      public LongCache(int initialCapacity)
      Constructs a new, empty hashtable with the specified initial capacity.
      Parameter:
      initialCapacity - int the initial number of buckets
  • Methodendetails

    • clear

      public void clear()
      Clears the hash table so that it has no more elements in it.
    • containsKey

      public boolean containsKey(long key)
      Returns true if the collection contains an element for the key.
      Parameter:
      key - long the key that we are looking for
      Gibt zurück:
      boolean
    • hash

      public int hash(long key)
      Return a hashcode for the value of the key parameter.
      Parameter:
      key - long
      Gibt zurück:
      int the hash code corresponding to the key value
    • put

      public int put(long key, int value)
      Puts the specified element into the hashtable, using the specified key. The element may be retrieved by doing a get() with the same key.
      Parameter:
      key - long the specified key in the hashtable
      value - int the specified element
      Gibt zurück:
      int value
    • putIfAbsent

      public int putIfAbsent(long key, int value)
      Puts the specified element into the hashtable, using the specified key. The element may be retrieved by doing a get() with the same key.
      Parameter:
      key - long the specified key in the hashtable
      value - int the specified element
      Gibt zurück:
      int value
    • size

      public int size()
      Returns the number of elements contained in the hashtable.
      Gibt zurück:
      int The size of the table
    • toString

      public String toString()
      Converts to a rather lengthy String.
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      String the ascii representation of the receiver