|
![]() |
|||||||||
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
net.ontopia.utils.CompactHashSet
net.ontopia.utils.UniqueSet
public class UniqueSet
INTERNAL:
Constructor Summary | |
---|---|
UniqueSet()
|
|
UniqueSet(java.util.Collection c)
|
|
UniqueSet(int size)
|
|
UniqueSet(UniqueSet s)
|
|
UniqueSet(UniqueSet s1,
UniqueSet s2)
|
Method Summary | |
---|---|
boolean |
add(java.lang.Object o)
Adds the specified element to this set if it is not already present. |
UniqueSet |
add(UniqueSet set,
java.lang.Object o,
boolean dereference)
|
boolean |
addAll(java.util.Collection coll)
|
void |
clear()
Removes all of the elements from this set. |
void |
dereference(UniqueSet set)
|
void |
dump()
INTERNAL: Used for debugging only. |
UniqueSet |
get(java.util.Set set)
INTERNAL: Get the internal representation of a given set. |
int |
getReferenceCount()
|
int |
hashCode()
|
boolean |
remove(java.lang.Object o)
Removes the specified element from the set. |
UniqueSet |
remove(UniqueSet set,
java.lang.Object o,
boolean dereference)
|
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, 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 |
---|
containsAll |
Constructor Detail |
---|
public UniqueSet()
public UniqueSet(int size)
public UniqueSet(java.util.Collection c)
public UniqueSet(UniqueSet s)
public UniqueSet(UniqueSet s1, UniqueSet s2)
Method Detail |
---|
public int getReferenceCount()
public UniqueSet get(java.util.Set set)
public void dereference(UniqueSet set)
public UniqueSet add(UniqueSet set, java.lang.Object o, boolean dereference)
public UniqueSet remove(UniqueSet set, java.lang.Object o, boolean dereference)
public void dump()
CompactHashSet
dump
in class CompactHashSet
public boolean add(java.lang.Object o)
CompactHashSet
add
in interface java.util.Collection
add
in interface java.util.Set
add
in class CompactHashSet
o
- element to be added to this set.
public boolean remove(java.lang.Object o)
CompactHashSet
remove
in interface java.util.Collection
remove
in interface java.util.Set
remove
in class CompactHashSet
public boolean addAll(java.util.Collection coll)
addAll
in interface java.util.Collection
addAll
in interface java.util.Set
addAll
in class java.util.AbstractCollection
public boolean removeAll(java.util.Collection coll)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.Set
removeAll
in class java.util.AbstractSet
public boolean retainAll(java.util.Collection coll)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.Set
retainAll
in class java.util.AbstractCollection
public void clear()
CompactHashSet
clear
in interface java.util.Collection
clear
in interface java.util.Set
clear
in class CompactHashSet
public java.lang.String toString()
toString
in class java.util.AbstractCollection
public int hashCode()
hashCode
in interface java.util.Collection
hashCode
in interface java.util.Set
hashCode
in class java.util.AbstractSet
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |