Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS

Class cornell.slk.jkernel.core.RefSetCache

Source code
java.lang.Object
    |
    +----cornell.slk.jkernel.core.RefSetCache

final class RefSetCache
extends java.lang.Object
A set of objects. Objects are compared using ==. This isn't meant for general purpose use because of its lack of synchronization (see note in containsKey below).


Field Summary
int  currentSize
 
java.lang.Object[]  keyTable
 
int  maxSize
 
 

Constructor Summary
 RefSetCache()
 
 

Method Summary
boolean  containsKey(java.lang.Object key)
Is the object a member of the set? This member is not synchronized and therefore may return "false" when it should return "true".
void  put(java.lang.Object key)
 
void  rehash()
 
 
Methods inherited from class java.lang.Object
 , clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

keyTable

private java.lang.Object[] keyTable

currentSize

private int currentSize

maxSize

private int maxSize
Constructor Detail

RefSetCache

RefSetCache()
Method Detail

rehash

private void rehash()

put

void put(java.lang.Object key)

containsKey

boolean containsKey(java.lang.Object key)
Is the object a member of the set? This member is not synchronized and therefore may return "false" when it should return "true". However, it will never return "true" when it should return "false". Nor will it throw an exception.

Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS