public interface FlowSet<T>
extends java.lang.Iterable<T>
| Modifier and Type | Method and Description |
|---|---|
void |
add(T obj)
Adds
obj to this. |
void |
add(T obj,
FlowSet<T> dest)
puts
this union obj into dest. |
void |
clear()
Sets this FlowSet to the empty set (more generally, the bottom element
of the lattice.)
|
FlowSet<T> |
clone()
Clones the current FlowSet.
|
boolean |
contains(T obj)
Returns true if this FlowSet contains
obj. |
void |
copy(FlowSet<T> dest)
Copies the current FlowSet into dest.
|
void |
difference(FlowSet<T> other)
Returns the set difference (this intersect ~other) of this FlowSet and
other, putting result into this. |
void |
difference(FlowSet<T> other,
FlowSet<T> dest)
Returns the set difference (this intersect ~other) of this FlowSet and
other, putting result into dest. |
FlowSet<T> |
emptySet()
returns an empty set, most often more efficient than:
((FlowSet)clone()).clear() |
void |
intersection(FlowSet<T> other)
Returns the intersection (meet) of this FlowSet and
other,
putting result into this. |
void |
intersection(FlowSet<T> other,
FlowSet<T> dest)
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 |
isSubSet(FlowSet<T> other)
Returns true if the
other FlowSet is a subset of this FlowSet. |
java.util.Iterator<T> |
iterator()
returns an iterator over the elements of the flowSet.
|
void |
remove(T obj)
Removes
obj from this. |
void |
remove(T obj,
FlowSet<T> dest)
Puts
this minus obj into dest. |
int |
size()
Returns the size of the current FlowSet.
|
java.util.List<T> |
toList()
Returns an unbacked list of contained objects for this FlowSet.
|
void |
union(FlowSet<T> other)
Returns the union (join) of this FlowSet and
other, putting
result into this. |
void |
union(FlowSet<T> other,
FlowSet<T> dest)
Returns the union (join) of this FlowSet and
other, putting
result into dest. |
FlowSet<T> emptySet()
((FlowSet)clone()).clear()void clear()
void union(FlowSet<T> other)
other, putting
result into this.void union(FlowSet<T> other, FlowSet<T> dest)
other, putting
result into dest. dest, other and
this could be the same object.void intersection(FlowSet<T> other)
other,
putting result into this.void intersection(FlowSet<T> other, FlowSet<T> dest)
other,
putting result into dest. dest,
other and this could be the same object.void difference(FlowSet<T> other)
other, putting result into this.void difference(FlowSet<T> other, FlowSet<T> dest)
other, putting result into dest.
dest, other and this could be the
same object.boolean isEmpty()
int size()
void add(T obj)
obj to this.void remove(T obj)
obj from this.boolean contains(T obj)
obj.boolean isSubSet(FlowSet<T> other)
other FlowSet is a subset of this FlowSet.java.util.Iterator<T> iterator()
toList().iterator().iterator in interface java.lang.Iterable<T>java.util.List<T> toList()