|
|
|||||||||
| 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.
| Constructor Summary | |
|---|---|
PoolableSet()
|
|
PoolableSet(java.util.Collection c)
|
|
PoolableSet(CompactHashSet s)
|
|
PoolableSet(int size)
|
|
| Method Summary | |
|---|---|
boolean |
_add(java.lang.Object o)
|
boolean |
_remove(java.lang.Object o)
|
boolean |
add(java.lang.Object o)
Adds the specified element to this set if it is not already present. |
boolean |
addAll(java.util.Collection coll)
|
void |
clear()
Removes all of the elements from this set. |
int |
dereferenced(SetPoolIF pool)
INTERNAL: Decrement and return reference count. |
boolean |
equalsAdd(java.util.Set other,
java.lang.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(java.util.Set other,
java.lang.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(java.lang.Object o)
Removes the specified element from the set. |
boolean |
removeAll(java.util.Collection coll)
|
boolean |
retainAll(java.util.Collection coll)
|
java.lang.String |
toString()
|
| Methods inherited from class net.ontopia.utils.CompactHashSet |
|---|
contains, dump, isEmpty, iterator, 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 |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
contains, containsAll, equals, isEmpty, iterator, size, toArray, toArray |
| Constructor Detail |
|---|
public PoolableSet()
public PoolableSet(int size)
public PoolableSet(java.util.Collection c)
public PoolableSet(CompactHashSet s)
| Method Detail |
|---|
public boolean _add(java.lang.Object o)
public boolean _remove(java.lang.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(java.util.Set other,
java.lang.Object o)
PoolableSetIF
equalsAdd in interface PoolableSetIF
public boolean equalsRemove(java.util.Set other,
java.lang.Object o)
PoolableSetIF
equalsRemove in interface PoolableSetIFpublic boolean add(java.lang.Object o)
CompactHashSet
add in interface java.util.Collectionadd in interface java.util.Setadd in class CompactHashSeto - element to be added to this set.
public boolean remove(java.lang.Object o)
CompactHashSet
remove in interface java.util.Collectionremove in interface java.util.Setremove in class CompactHashSetpublic boolean addAll(java.util.Collection coll)
addAll in interface java.util.CollectionaddAll in interface java.util.SetaddAll in class java.util.AbstractCollectionpublic boolean removeAll(java.util.Collection coll)
removeAll in interface java.util.CollectionremoveAll in interface java.util.SetremoveAll in class java.util.AbstractSetpublic boolean retainAll(java.util.Collection coll)
retainAll in interface java.util.CollectionretainAll in interface java.util.SetretainAll in class java.util.AbstractCollectionpublic void clear()
CompactHashSet
clear in interface java.util.Collectionclear in interface java.util.Setclear in class CompactHashSetpublic java.lang.String toString()
toString in class java.util.AbstractCollectionpublic int hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.SethashCode in class java.util.AbstractSet
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||