|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.internal.compiler.codegen.FloatCache
public class FloatCache
| Constructor Summary | |
|---|---|
FloatCache()
Constructs a new, empty hashtable. |
|
FloatCache(int initialCapacity)
Constructs a new, empty hashtable with the specified initial capacity. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FloatCache()
public FloatCache(int initialCapacity)
initialCapacity - int
the initial number of buckets| Method Detail |
|---|
public void clear()
public boolean containsKey(float key)
key - float the key that we are looking for
public int put(float key,
int value)
key - float the specified key in the hashtablevalue - int the specified element
public int putIfAbsent(float key,
int value)
key - float the specified key in the hashtablevalue - int the specified element
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||