|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.white.xpp.basic.Heaper
|
+--org.abora.white.collection.sets.ScruSet
|
+--org.abora.white.collection.sets.ImmuSet
|
+--org.abora.white.collection.sets.ImmuSetOnMu
Implementation of ImmuSet by delegating to an internal MuSet which actually holds the members of the set.
| Field Summary | |
protected MuSet |
setInternal
|
| Fields inherited from class org.abora.white.collection.sets.ImmuSet |
EmptySet |
| Constructor Summary | |
protected |
ImmuSetOnMu(MuSet fromSet)
this set should be a copy for my own use |
protected |
ImmuSetOnMu(Rcvr receiver)
|
| Method Summary | |
MuSet |
asMuSet()
Return a Mu whose initial state is the same as my current state, but which will now deviate independently of me. |
IntegerValue |
count()
How many elements are currently in the set. |
void |
destruct()
|
boolean |
hasMember(Heaper someone)
Is someone a member of the set now? |
ImmuSet |
intersect(ScruSet another)
Regular set intersection. |
boolean |
isEmpty()
Return true if this set does not currently have
any elements. |
boolean |
isSubsetOf(ScruSet another)
Whether another currently has all my elements |
static ImmuSet |
make(MuSet aSet)
|
ImmuSet |
minus(ScruSet another)
Return an ImmuSet containing those of my members which aren't members of 'another' |
void |
sendSelfTo(Xmtr xmtr)
|
Stepper |
stepper()
Returns a stepper which will enumerate all the elements of the set in some unspecified order |
Heaper |
theOne()
Iff I contain exactly one member, return it. |
ImmuSet |
unionWith(ScruSet another)
Return an ImmuSet containing those objects with are members of either of us |
ImmuSet |
with(Heaper anElement)
'set->with (anElement)' means the same as 'set->unionWith (immuSet (anElement))'. |
ImmuSet |
without(Heaper anElement)
'set->without (anElement)' means the same as 'set->minus (immuSet (anElement))'. |
| Methods inherited from class org.abora.white.collection.sets.ImmuSet |
actualHashForEqual, asImmuSet, copy, from, isEqual, make, newWith |
| Methods inherited from class org.abora.white.collection.sets.ScruSet |
asArray, contentsEqual, contentsHash, intersects, printOn, printOnWithSimpleSyntax, printOnWithSyntax |
| Methods inherited from class org.abora.white.xpp.basic.Heaper |
destroy, equals, hashForEqual, printContentsOn, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected MuSet setInternal
| Constructor Detail |
protected ImmuSetOnMu(MuSet fromSet)
protected ImmuSetOnMu(Rcvr receiver)
| Method Detail |
public static ImmuSet make(MuSet aSet)
public boolean hasMember(Heaper someone)
ScruSet
hasMember in class ImmuSetpublic boolean isEmpty()
ScruSetthis set does not currently have
any elements.
isEmpty in class ImmuSetthis set does not currently have any
elements.public boolean isSubsetOf(ScruSet another)
ScruSet
isSubsetOf in class ScruSetpublic IntegerValue count()
ScruSet
count in class ImmuSetpublic Stepper stepper()
ScruSet
stepper in class ImmuSetpublic Heaper theOne()
ScruSet
theOne in class ScruSetpublic ImmuSet intersect(ScruSet another)
ImmuSet
intersect in class ImmuSetpublic ImmuSet minus(ScruSet another)
ImmuSet
minus in class ImmuSetpublic ImmuSet unionWith(ScruSet another)
ImmuSet
unionWith in class ImmuSetpublic ImmuSet with(Heaper anElement)
ImmuSet
with in class ImmuSetpublic ImmuSet without(Heaper anElement)
ImmuSet
without in class ImmuSetpublic MuSet asMuSet()
ScruSet
asMuSet in class ImmuSetpublic void destruct()
destruct in class Heaperpublic void sendSelfTo(Xmtr xmtr)
sendSelfTo in class Heaper
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||