|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectmathCollection.MathCollections.SynchronizedSetOfSets
Field Summary | |
private java.lang.Object |
myMutex
|
private SetOfSets |
mySetOfSets
|
Constructor Summary | |
(package private) |
MathCollections.SynchronizedSetOfSets(SetOfSets ms)
|
(package private) |
MathCollections.SynchronizedSetOfSets(SetOfSets ms,
java.lang.Object mutex)
|
Method Summary | |
boolean |
add(java.lang.Object o)
Adds the specified element to this set if it is not already present. |
boolean |
addAll(java.util.Collection c)
|
void |
clear()
|
java.lang.Object |
clone()
|
SetOfSets |
containingSets(java.lang.Object o)
Returns a set containing the elementary sets from within this set of sets that contain the specified element. |
boolean |
contains(java.lang.Object o)
Returns true if this set contains the specified element. |
boolean |
containsAll(java.util.Collection c)
|
boolean |
containsAtom(java.lang.Object o)
Returns true if this set of sets contains a set in which the
specified element is present. |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
boolean |
remove(java.lang.Object o)
Removes the specified element from this set if it is present. |
boolean |
removeAll(java.util.Collection c)
|
boolean |
retainAll(java.util.Collection c)
|
int |
size()
|
SetOfSets |
subsets(java.util.Set s)
Returns a new set containing the subsets of the specified set. |
SetOfSets |
supersets(java.util.Set s)
Returns a new set containing the supersets of the specified set. |
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] o)
|
Multiset |
toMultiset()
Returns the 'flattened' multiset version of this set of sets, containing the same elements as in all sets of this set of sets. |
java.util.Set |
toSet()
Returns the 'flattened' version of this set of sets, in which each basic element of this set of sets is present exactly once. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private SetOfSets mySetOfSets
private java.lang.Object myMutex
Constructor Detail |
MathCollections.SynchronizedSetOfSets(SetOfSets ms)
MathCollections.SynchronizedSetOfSets(SetOfSets ms, java.lang.Object mutex)
Method Detail |
public int size()
size
in interface java.util.Set
public boolean isEmpty()
isEmpty
in interface java.util.Set
public void clear()
clear
in interface java.util.Set
public boolean equals(java.lang.Object o)
equals
in interface java.util.Set
public int hashCode()
hashCode
in interface java.util.Set
public java.util.Set toSet()
SetOfSets
toSet
in interface SetOfSets
public Multiset toMultiset()
SetOfSets
toMultiset
in interface SetOfSets
public java.lang.String toString()
public java.lang.Object[] toArray()
toArray
in interface java.util.Set
public java.lang.Object[] toArray(java.lang.Object[] o)
toArray
in interface java.util.Set
public java.util.Iterator iterator()
iterator
in interface java.util.Set
public java.lang.Object clone()
public boolean add(java.lang.Object o)
SetOfSets
add
in interface SetOfSets
o
- element to be added to this set.
true
if the set did not already contain the
specified element, false
otherwise.public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Set
public boolean contains(java.lang.Object o)
SetOfSets
true
if this set contains the specified element.
contains
in interface SetOfSets
o
- element whose presence in this set is to be tested.
true
if this set contains the specified element,
false
otherwise.public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Set
public boolean remove(java.lang.Object o)
SetOfSets
remove
in interface SetOfSets
o
- object to be removed from this set, if present.
true
if the set did contain the specified element,
false
otherwise.public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Set
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Set
public SetOfSets containingSets(java.lang.Object o)
SetOfSets
containingSets
in interface SetOfSets
o
- the element that the returned sets have to contain.
public boolean containsAtom(java.lang.Object o)
SetOfSets
true
if this set of sets contains a set in which the
specified element is present.
containsAtom
in interface SetOfSets
o
- the element whose presence in any elementary set within this
set of sets is tested for.
true
if any set within this set of sets contains
the specified element, false
otherwise.public SetOfSets supersets(java.util.Set s)
SetOfSets
supersets
in interface SetOfSets
s
- the set that the returned sets have to be supersets of.
public SetOfSets subsets(java.util.Set s)
SetOfSets
subsets
in interface SetOfSets
s
- the set that the returned sets have to be subsets of.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |