public class ArrayPackedSet<T> extends AbstractBoundedFlowSet<T>
| Constructor and Description |
|---|
ArrayPackedSet(FlowUniverse<T> universe) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T obj)
Adds
obj to this. |
void |
clear()
implemented, but *very* inefficient.
|
ArrayPackedSet<T> |
clone()
Clones the current FlowSet.
|
void |
complement(FlowSet<T> destFlow)
Complements this BoundedFlowSet, putting the result into
dest. |
boolean |
contains(T obj)
Returns true, if the object is in the set.
|
void |
copy(FlowSet<T> destFlow)
Copies the current FlowSet into dest.
|
void |
difference(FlowSet<T> otherFlow,
FlowSet<T> destFlow)
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 otherFlow) |
void |
intersection(FlowSet<T> otherFlow,
FlowSet<T> destFlow)
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. |
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.util.List<T> |
toList(int lowInclusive,
int highInclusive) |
void |
union(FlowSet<T> otherFlow,
FlowSet<T> destFlow)
Returns the union (join) of this FlowSet and
other, putting
result into dest. |
complement, topSetadd, difference, hashCode, intersection, remove, toString, unionfinalize, getClass, notify, notifyAll, wait, wait, waitadd, difference, intersection, remove, unionpublic ArrayPackedSet(FlowUniverse<T> universe)
public ArrayPackedSet<T> clone()
FlowSetpublic FlowSet<T> emptySet()
AbstractFlowSetpublic int size()
FlowSetpublic boolean isEmpty()
FlowSetpublic void clear()
AbstractFlowSetpublic java.util.List<T> toList(int lowInclusive, int highInclusive)
public java.util.List<T> toList()
FlowSetpublic void complement(FlowSet<T> destFlow)
BoundedFlowSetdest. dest and this may be the
same object.complement in interface BoundedFlowSet<T>complement in class AbstractBoundedFlowSet<T>public boolean isSubSet(FlowSet<T> other)
FlowSetother FlowSet is a subset of this FlowSet.public void union(FlowSet<T> otherFlow, FlowSet<T> destFlow)
FlowSetother, putting
result into dest. dest, other and
this could be the same object.public void difference(FlowSet<T> otherFlow, FlowSet<T> destFlow)
FlowSetother, putting result into dest.
dest, other and this could be the
same object.difference in interface FlowSet<T>difference in class AbstractFlowSet<T>public void intersection(FlowSet<T> otherFlow, FlowSet<T> destFlow)
FlowSetother,
putting result into dest. dest,
other and this could be the same object.intersection in interface FlowSet<T>intersection in class AbstractFlowSet<T>public boolean contains(T obj)
public boolean equals(java.lang.Object otherFlow)
equals in class AbstractFlowSet<T>public void copy(FlowSet<T> destFlow)
FlowSet