|
||||||||
| 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.TinyImmuSet
This is an efficient implementation of ImmuSets for one element sets.
| Field Summary | |
protected Heaper |
elementInternal
|
| Fields inherited from class org.abora.white.collection.sets.ImmuSet |
EmptySet |
| Constructor Summary | |
protected |
TinyImmuSet(Heaper only)
Initialize a singleton immuset |
protected |
TinyImmuSet(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. |
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(Heaper aHeaper)
|
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, 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, destruct, equals, hashForEqual, printContentsOn, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Heaper elementInternal
| Constructor Detail |
protected TinyImmuSet(Heaper only)
protected TinyImmuSet(Rcvr receiver)
| Method Detail |
public static ImmuSet make(Heaper aHeaper)
public IntegerValue count()
ScruSet
count in class ImmuSetpublic Stepper stepper()
ScruSet
stepper in class ImmuSetpublic Heaper theOne()
ScruSet
theOne in class ScruSetpublic ImmuSet with(Heaper anElement)
ImmuSet
with in class ImmuSetpublic ImmuSet without(Heaper anElement)
ImmuSet
without in class ImmuSetpublic 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 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 MuSet asMuSet()
ScruSet
asMuSet in class ImmuSetpublic void sendSelfTo(Xmtr xmtr)
sendSelfTo in class Heaper
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||