|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsoot.toolkits.scalar.AbstractFlowSet
public abstract class AbstractFlowSet
provides functional code for most of the methods. Subclasses are invited to
provide a more efficient version. Most often this will be done in the
following way:
public void yyy(FlowSet dest) {
if (dest instanceof xxx) {
blahblah;
} else
super.yyy(dest)
}
| Constructor Summary | |
|---|---|
AbstractFlowSet()
|
|
| Method Summary | |
|---|---|
abstract void |
add(Object obj)
Adds obj to this. |
void |
add(Object obj,
FlowSet dest)
puts this union obj into dest. |
void |
clear()
implemented, but *very* inefficient. |
abstract AbstractFlowSet |
clone()
Clones the current FlowSet. |
abstract boolean |
contains(Object obj)
Returns true if this FlowSet contains obj. |
void |
copy(FlowSet dest)
Copies the current FlowSet into dest. |
void |
difference(FlowSet other)
Returns the set difference (this intersect ~other) of this FlowSet and other, putting result into this. |
void |
difference(FlowSet other,
FlowSet dest)
Returns the set difference (this intersect ~other) of this FlowSet and other, putting result into dest. |
Object |
emptySet()
implemented, but inefficient. |
boolean |
equals(Object o)
|
int |
hashCode()
|
void |
intersection(FlowSet other)
Returns the intersection (meet) of this FlowSet and other,
putting result into this. |
void |
intersection(FlowSet other,
FlowSet dest)
Returns the intersection (meet) of this FlowSet and other,
putting result into dest. |
abstract boolean |
isEmpty()
Returns true if this FlowSet is the empty set. |
Iterator |
iterator()
returns an iterator over the elements of the flowSet. |
abstract void |
remove(Object obj)
Removes obj from this. |
void |
remove(Object obj,
FlowSet dest)
Puts this minus obj into dest. |
abstract int |
size()
Returns the size of the current FlowSet. |
abstract List |
toList()
Returns an unbacked list of contained objects for this FlowSet. |
String |
toString()
|
void |
union(FlowSet other)
Returns the union (join) of this FlowSet and other, putting
result into this. |
void |
union(FlowSet other,
FlowSet dest)
Returns the union (join) of this FlowSet and other, putting
result into dest. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractFlowSet()
| Method Detail |
|---|
public abstract AbstractFlowSet clone()
FlowSet
clone in interface FlowSetclone in class Objectpublic Object emptySet()
emptySet in interface FlowSetpublic void copy(FlowSet dest)
FlowSet
copy in interface FlowSetpublic void clear()
clear in interface FlowSetpublic void union(FlowSet other)
FlowSetother, putting
result into this.
union in interface FlowSet
public void union(FlowSet other,
FlowSet dest)
FlowSetother, putting
result into dest. dest, other and
this could be the same object.
union in interface FlowSetpublic void intersection(FlowSet other)
FlowSetother,
putting result into this.
intersection in interface FlowSet
public void intersection(FlowSet other,
FlowSet dest)
FlowSetother,
putting result into dest. dest,
other and this could be the same object.
intersection in interface FlowSetpublic void difference(FlowSet other)
FlowSetother, putting result into this.
difference in interface FlowSet
public void difference(FlowSet other,
FlowSet dest)
FlowSetother, putting result into dest.
dest, other and this could be the
same object.
difference in interface FlowSetpublic abstract boolean isEmpty()
FlowSet
isEmpty in interface FlowSetpublic abstract int size()
FlowSet
size in interface FlowSetpublic abstract void add(Object obj)
FlowSetobj to this.
add in interface FlowSet
public void add(Object obj,
FlowSet dest)
FlowSetthis union obj into dest.
add in interface FlowSetpublic abstract void remove(Object obj)
FlowSetobj from this.
remove in interface FlowSet
public void remove(Object obj,
FlowSet dest)
FlowSetthis minus obj into dest.
remove in interface FlowSetpublic abstract boolean contains(Object obj)
FlowSetobj.
contains in interface FlowSetpublic Iterator iterator()
FlowSettoList().iterator().
iterator in interface Iterableiterator in interface FlowSetpublic abstract List toList()
FlowSet
toList in interface FlowSetpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||