|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.internal.compiler.codegen.ObjectCache
public class ObjectCache
| Field Summary | |
|---|---|
Object[] |
keyTable
|
int[] |
valueTable
|
| Constructor Summary | |
|---|---|
ObjectCache()
Constructs a new, empty hashtable. |
|
ObjectCache(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(Object key)
Returns true if the collection contains an element for the key. |
int |
get(Object key)
Gets the object associated with the specified key in the hashtable. |
int |
hashCode(Object key)
Return the hashcode for the key parameter |
int |
put(Object key,
int value)
Puts the specified element into the hashtable, using the specified key. |
int |
size()
Returns the number of elements contained in the hashtable. |
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 |
| Field Detail |
|---|
public Object[] keyTable
public int[] valueTable
| Constructor Detail |
|---|
public ObjectCache()
public ObjectCache(int initialCapacity)
initialCapacity - int
the initial number of buckets| Method Detail |
|---|
public void clear()
public boolean containsKey(Object key)
key - char[] the key that we are looking for
public int get(Object key)
key - char[] the specified key
public int hashCode(Object key)
key - org.eclipse.jdt.internal.compiler.lookup.MethodBinding
public int put(Object key,
int value)
key - Object the specified key in the hashtablevalue - int the specified element
public int size()
int The size of the tablepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||