|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
net.ontopia.utils.CompactHashSet
net.ontopia.utils.PoolableSet
public class PoolableSet
INTERNAL: The default PoolableSet implementation. This is class is used by the default SetPool implementation.
| Field Summary | |
|---|---|
protected int |
hc
|
protected int |
hc_modCount
|
protected int |
refcount
|
| Fields inherited from class net.ontopia.utils.CompactHashSet |
|---|
deletedObject, elements, freecells, INITIAL_SIZE, LOAD_FACTOR, modCount, nullObject, objects |
| Constructor Summary | |
|---|---|
PoolableSet()
|
|
PoolableSet(Collection c)
|
|
PoolableSet(CompactHashSet s)
|
|
PoolableSet(int size)
|
|
| Method Summary | |
|---|---|
boolean |
_add(Object o)
|
boolean |
_remove(Object o)
|
boolean |
add(Object o)
Adds the specified element to this set if it is not already present. |
boolean |
addAll(Collection coll)
|
void |
clear()
Removes all of the elements from this set. |
int |
dereferenced(SetPoolIF pool)
INTERNAL: Decrement and return reference count. |
boolean |
equalsAdd(Set other,
Object o)
INTERNAL: Returns true if the given set will be equal to this set if the given object had been added to this set. |
boolean |
equalsRemove(Set other,
Object o)
INTERNAL: Returns true if the given set will be equal to this set if the given object had been removed from this set. |
int |
getReferenceCount()
INTERNAL: Return the current reference count. |
int |
hashCode()
|
int |
referenced(SetPoolIF pool)
INTERNAL: Increment and return reference count. |
boolean |
remove(Object o)
Removes the specified element from the set. |
boolean |
removeAll(Collection coll)
|
boolean |
retainAll(Collection coll)
|
String |
toString()
|
| Methods inherited from class net.ontopia.utils.CompactHashSet |
|---|
contains, dump, isEmpty, iterator, rehash, rehash, size, toArray, toArray |
| Methods inherited from class java.util.AbstractSet |
|---|
equals |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
contains, containsAll, equals, isEmpty, iterator, size, toArray, toArray |
| Field Detail |
|---|
protected int refcount
protected int hc
protected int hc_modCount
| Constructor Detail |
|---|
public PoolableSet()
public PoolableSet(int size)
public PoolableSet(Collection c)
public PoolableSet(CompactHashSet s)
| Method Detail |
|---|
public boolean _add(Object o)
public boolean _remove(Object o)
public int getReferenceCount()
PoolableSetIF
getReferenceCount in interface PoolableSetIFpublic int referenced(SetPoolIF pool)
PoolableSetIF
referenced in interface PoolableSetIFpublic int dereferenced(SetPoolIF pool)
PoolableSetIF
dereferenced in interface PoolableSetIF
public boolean equalsAdd(Set other,
Object o)
PoolableSetIF
equalsAdd in interface PoolableSetIF
public boolean equalsRemove(Set other,
Object o)
PoolableSetIF
equalsRemove in interface PoolableSetIFpublic boolean add(Object o)
CompactHashSet
add in interface Collectionadd in interface Setadd in class CompactHashSeto - element to be added to this set.
public boolean remove(Object o)
CompactHashSet
remove in interface Collectionremove in interface Setremove in class CompactHashSetpublic boolean addAll(Collection coll)
addAll in interface CollectionaddAll in interface SetaddAll in class AbstractCollectionpublic boolean removeAll(Collection coll)
removeAll in interface CollectionremoveAll in interface SetremoveAll in class AbstractSetpublic boolean retainAll(Collection coll)
retainAll in interface CollectionretainAll in interface SetretainAll in class AbstractCollectionpublic void clear()
CompactHashSet
clear in interface Collectionclear in interface Setclear in class CompactHashSetpublic String toString()
toString in class AbstractCollectionpublic int hashCode()
hashCode in interface CollectionhashCode in interface SethashCode in class AbstractSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||