|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractSet
mathCollection.AbstractSetOfSets
This class provides a skeletal implementation of the SetOfSets
interface to minimize the effort required to implement this interface.
Set
,
AbstractSet
,
SetOfSets
Constructor Summary | |
AbstractSetOfSets()
|
Method Summary | |
boolean |
containsAtom(java.lang.Object o)
Returns true if this set of sets contains a set in which the
specified element is present. |
int |
hashCode()
Returns the hash code value for this set of sets. |
java.lang.String |
toString()
Returns a string representation of this set of sets. |
Methods inherited from class java.util.AbstractSet |
equals, removeAll |
Methods inherited from class java.util.AbstractCollection |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, retainAll, size, toArray, toArray |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface mathCollection.SetOfSets |
add, containingSets, contains, remove, subsets, supersets, toMultiset, toSet |
Methods inherited from interface java.util.Set |
addAll, clear, containsAll, equals, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray |
Constructor Detail |
public AbstractSetOfSets()
Method Detail |
public int hashCode()
s1.equals(s2)
implies that
s1.hashCode()==s2.hashCode()
for any two set of sets
s1
and s2
, as required by the general contract
of Object.hashCode()
.
hashCode
in interface java.util.Set
public boolean containsAtom(java.lang.Object o)
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 java.lang.String toString()
"{}"
). Adjacent sets are separated by the characters
", "
(comma and space). Elementary sets are converted to
strings as by Object.toString()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |