public class ToppedSet<T> extends AbstractFlowSet<T>
Modifier and Type | Method and Description |
---|---|
void |
add(T obj)
Adds
obj to this . |
void |
clear()
implemented, but *very* inefficient.
|
ToppedSet<T> |
clone()
Clones the current FlowSet.
|
boolean |
contains(T obj)
Returns true if this FlowSet contains
obj . |
void |
copy(FlowSet<T> d)
Copies the current FlowSet into dest.
|
void |
difference(FlowSet<T> o,
FlowSet<T> d)
Returns the set difference (this intersect ~other) of this FlowSet and
other , putting result into dest . |
FlowSet<T> |
emptySet()
implemented, but inefficient.
|
boolean |
equals(java.lang.Object o) |
void |
intersection(FlowSet<T> o,
FlowSet<T> d)
Returns the intersection (meet) of this FlowSet and
other ,
putting result into dest . |
boolean |
isEmpty()
Returns true if this FlowSet is the empty set.
|
boolean |
isTop() |
java.util.Iterator<T> |
iterator()
returns an iterator over the elements of the flowSet.
|
void |
remove(T obj)
Removes
obj from this . |
void |
setTop(boolean top) |
int |
size()
Returns the size of the current FlowSet.
|
java.util.List<T> |
toList()
Returns an unbacked list of contained objects for this FlowSet.
|
java.lang.String |
toString() |
void |
union(FlowSet<T> o,
FlowSet<T> d)
Returns the union (join) of this FlowSet and
other , putting
result into dest . |
add, difference, hashCode, intersection, isSubSet, remove, union
public void setTop(boolean top)
public boolean isTop()
public ToppedSet<T> clone()
FlowSet
public void copy(FlowSet<T> d)
FlowSet
public FlowSet<T> emptySet()
AbstractFlowSet
public void clear()
AbstractFlowSet
public void union(FlowSet<T> o, FlowSet<T> d)
FlowSet
other
, putting
result into dest
. dest
, other
and
this
could be the same object.public void intersection(FlowSet<T> o, FlowSet<T> d)
FlowSet
other
,
putting result into dest
. dest
,
other
and this
could be the same object.intersection
in interface FlowSet<T>
intersection
in class AbstractFlowSet<T>
public void difference(FlowSet<T> o, FlowSet<T> d)
FlowSet
other
, putting result into dest
.
dest
, other
and this
could be the
same object.difference
in interface FlowSet<T>
difference
in class AbstractFlowSet<T>
public boolean isEmpty()
FlowSet
public int size()
FlowSet
public boolean contains(T obj)
FlowSet
obj
.public java.util.List<T> toList()
FlowSet
public boolean equals(java.lang.Object o)
equals
in class AbstractFlowSet<T>
public java.lang.String toString()
toString
in class AbstractFlowSet<T>