org.eclipse.jdt.internal.compiler.codegen
类 FloatCache

java.lang.Object
  继承者 org.eclipse.jdt.internal.compiler.codegen.FloatCache

public class FloatCache
extends Object


构造方法摘要
FloatCache()
          Constructs a new, empty hashtable.
FloatCache(int initialCapacity)
          Constructs a new, empty hashtable with the specified initial capacity.
 
方法摘要
 void clear()
          Clears the hash table so that it has no more elements in it.
 boolean containsKey(float key)
          Returns true if the collection contains an element for the key.
 int put(float key, int value)
          Puts the specified element into the hashtable, using the specified key.
 int putIfAbsent(float key, int value)
          Puts the specified element into the hashtable, using the specified key.
 String toString()
          Converts to a rather lengthy String.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

FloatCache

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


FloatCache

public FloatCache(int initialCapacity)
Constructs a new, empty hashtable with the specified initial capacity.

参数:
initialCapacity - int the initial number of buckets
方法详细信息

clear

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


containsKey

public boolean containsKey(float key)
Returns true if the collection contains an element for the key.

参数:
key - float the key that we are looking for
返回:
boolean

put

public int put(float 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.

参数:
key - float the specified key in the hashtable
value - int the specified element
返回:
int value

putIfAbsent

public int putIfAbsent(float 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.

参数:
key - float the specified key in the hashtable
value - int the specified element
返回:
int value

toString

public String toString()
Converts to a rather lengthy String.

覆盖:
Object 中的 toString
返回:
String the ascii representation of the receiver


Copyright © 2013. All Rights Reserved.