|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.internal.compiler.codegen.DoubleCache
public class DoubleCache
| Constructor Summary | |
|---|---|
DoubleCache()
Constructs a new, empty hashtable. |
|
DoubleCache(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(double key)
Returns true if the collection contains an element for the key. |
int |
put(double key,
int value)
Puts the specified element into the hashtable, using the specified key. |
int |
putIfAbsent(double 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 DoubleCache()
public DoubleCache(int initialCapacity)
initialCapacity - int
the initial number of buckets| Method Detail |
|---|
public void clear()
public boolean containsKey(double key)
key - double the key that we are looking for
public int put(double key,
int value)
key - double the specified key in the hashtablevalue - int the specified element
public int putIfAbsent(double key,
int value)
key - double 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 | |||||||||