|
||||||||
| 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.MuSet
|
+--org.abora.white.collection.sets.HashSet
MuSet based on the the hashForEqual method for set elements.
| Constructor Summary | |
protected |
HashSet()
|
protected |
HashSet(Rcvr rcvr)
|
| Method Summary | |
ImmuSet |
asImmuSet()
Return an immu snapshot of my current state. |
MuSet |
asMuSet()
Return a Mu whose initial state is the same as my current state, but which will now deviate independently of me. |
abstract ScruSet |
copy()
A new one whose initial state is my current state, but that doesn't track changes. |
abstract IntegerValue |
count()
How many elements are currently in the set. |
abstract boolean |
hasMember(Heaper someone)
Is someone a member of the set now? |
protected Stepper |
immuStepper()
|
abstract void |
introduce(Heaper anElement)
Add anElement to my members, but only if it isn't already a member. |
abstract boolean |
isEmpty()
Return true if this set does not currently have
any elements. |
static MuSet |
make()
|
static MuSet |
make(Heaper something)
|
static MuSet |
make(IntegerValue someSize)
someSize is a non-semantic hint about how big the set might get. |
protected abstract void |
printInternals(java.io.PrintWriter oo)
|
abstract void |
remove(Heaper anElement)
Remove anElement from my members. |
abstract Stepper |
stepper()
Returns a stepper which will enumerate all the elements of the set in some unspecified order |
abstract void |
store(Heaper anElement)
Add anElement to my set of members. |
abstract Heaper |
theOne()
Iff I contain exactly one member, return it. |
abstract void |
wipe(Heaper anElement)
make anElement no longer be one of my members. |
| Methods inherited from class org.abora.white.collection.sets.MuSet |
actualHashForEqual, fromStepper, isEqual, restrictTo, storeAll, wipeAll |
| Methods inherited from class org.abora.white.collection.sets.ScruSet |
asArray, contentsEqual, contentsHash, intersects, isSubsetOf, printOn, printOnWithSimpleSyntax, printOnWithSyntax |
| Methods inherited from class org.abora.white.xpp.basic.Heaper |
destroy, destruct, equals, hashForEqual, printContentsOn, sendSelfTo, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected HashSet()
protected HashSet(Rcvr rcvr)
| Method Detail |
public static MuSet make()
public static MuSet make(Heaper something)
public static MuSet make(IntegerValue someSize)
MuSet
public abstract boolean hasMember(Heaper someone)
ScruSet
hasMember in class MuSetpublic abstract boolean isEmpty()
ScruSetthis set does not currently have
any elements.
isEmpty in class MuSetthis set does not currently have any
elements.public abstract ScruSet copy()
ScruSet
copy in class MuSetpublic abstract IntegerValue count()
ScruSet
count in class MuSetpublic abstract Stepper stepper()
ScruSet
stepper in class MuSetpublic abstract Heaper theOne()
ScruSet
theOne in class ScruSetpublic abstract void introduce(Heaper anElement)
MuSet
introduce in class MuSetpublic abstract void remove(Heaper anElement)
MuSet
remove in class MuSetpublic abstract void store(Heaper anElement)
store in class MuSetpublic abstract void wipe(Heaper anElement)
wipe in class MuSetpublic ImmuSet asImmuSet()
ScruSet
asImmuSet in class MuSetpublic MuSet asMuSet()
ScruSet
asMuSet in class MuSetprotected abstract void printInternals(java.io.PrintWriter oo)
protected Stepper immuStepper()
immuStepper in class MuSet
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||