|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.gold.java.AboraHeaper
|
+--org.abora.gold.xpp.basic.Heaper
|
+--org.abora.gold.collection.sets.ScruSet
|
+--org.abora.gold.collection.sets.ImmuSet
|
+--org.abora.gold.collection.sets.TinyImmuSet
This is an efficient implementation of ImmuSets for zero and one element sets.
| Field Summary | |
protected Heaper |
elementInternal
|
| Fields inherited from class org.abora.gold.collection.sets.ImmuSet |
EmptySet |
| Fields inherited from class org.abora.gold.xpp.basic.Heaper |
AllBlasts, BecomeMap, GarbageCount, InGC, InitializedClasses, InitializingClasses, LastMemory, NextClientRequestNumber, NotOneElementSignal, PackageTable, PromiseNameTable, StringHashSBoxes |
| Fields inherited from class org.abora.gold.java.AboraHeaper |
ActiveClubs, CurrentAuthor, CurrentBertCanopyCache, CurrentBertCrum, CurrentChunk, CurrentGrandMap, CurrentKeyMaster, CurrentPacker, CurrentSensorCanopyCache, CurrentServer, CurrentSession, CurrentSessions, CurrentTrace, InitialEditClub, InitialOwner, InitialReadClub, InitialSponsor, InsideTransactionFlag |
| Constructor Summary | |
TinyImmuSet(Heaper only)
Initialize a singleton immuset |
|
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. |
IntegerVar |
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()
Whether it currently has any elements |
boolean |
isSubsetOf(ScruSet another)
Whether another currently has all my elements |
static Heaper |
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)
do nothing |
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))'. It returns an ImmuSet with all my members and having anElement as a member. If anElement is a member of me, then the result is identical to me. |
ImmuSet |
without(Heaper anElement)
'set->without (anElement)' means the same as 'set->minus (immuSet (anElement))'. It returns an ImmuSet with all my members except anElement. |
| Methods inherited from class org.abora.gold.collection.sets.ImmuSet |
actualHashForEqual, asImmuSet, copy, create, from, initTimeNonInherited, isEqual, linkTimeNonInherited, make, make, make, newWith |
| Methods inherited from class org.abora.gold.collection.sets.ScruSet |
asArray, asOrderedCollection, contentsEqual, contentsHash, dox, inspect, intersects, printOn, printOnWithSimpleSyntax, printOnWithSyntax, problems |
| Methods inherited from class org.abora.gold.java.AboraHeaper |
asOop, basicInspect, displayString, error, hack, halt, knownBug, mightNotImplement, REQUIRES, shouldImplement, shouldNotImplement, stubbleForSubclassResponsibility, thingToDo, willNotImplement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Heaper elementInternal
| Constructor Detail |
public TinyImmuSet(Heaper only)
public TinyImmuSet(Rcvr receiver)
| Method Detail |
public IntegerVar 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()
ScruSet
isEmpty in class ImmuSetpublic 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)
Heaper
sendSelfTo in class Heaperpublic static Heaper make(Heaper aHeaper)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||