|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsoot.toolkits.scalar.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 Object |
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)
|
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, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AbstractFlowSet()
Method Detail |
public abstract Object clone()
FlowSet
clone
in interface FlowSet
public Object emptySet()
emptySet
in interface FlowSet
public void copy(FlowSet dest)
FlowSet
copy
in interface FlowSet
public void clear()
clear
in interface FlowSet
public void union(FlowSet other)
FlowSet
other
, putting
result into this
.
union
in interface FlowSet
public void union(FlowSet other, FlowSet dest)
FlowSet
other
, putting
result into dest
. dest
, other
and
this
could be the same object.
union
in interface FlowSet
public void intersection(FlowSet other)
FlowSet
other
,
putting result into this
.
intersection
in interface FlowSet
public void intersection(FlowSet other, FlowSet dest)
FlowSet
other
,
putting result into dest
. dest
,
other
and this
could be the same object.
intersection
in interface FlowSet
public void difference(FlowSet other)
FlowSet
other
, putting result into this
.
difference
in interface FlowSet
public void difference(FlowSet other, FlowSet dest)
FlowSet
other
, putting result into dest
.
dest
, other
and this
could be the
same object.
difference
in interface FlowSet
public abstract boolean isEmpty()
FlowSet
isEmpty
in interface FlowSet
public abstract int size()
FlowSet
size
in interface FlowSet
public abstract void add(Object obj)
FlowSet
obj
to this
.
add
in interface FlowSet
public void add(Object obj, FlowSet dest)
FlowSet
this
union obj
into dest
.
add
in interface FlowSet
public abstract void remove(Object obj)
FlowSet
obj
from this
.
remove
in interface FlowSet
public void remove(Object obj, FlowSet dest)
FlowSet
this
minus obj
into dest
.
remove
in interface FlowSet
public abstract boolean contains(Object obj)
FlowSet
obj
.
contains
in interface FlowSet
public Iterator iterator()
FlowSet
toList().iterator()
.
iterator
in interface FlowSet
public abstract List toList()
FlowSet
toList
in interface FlowSet
public boolean equals(Object o)
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |