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(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() |
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.
|
List<T> |
toList()
Returns an unbacked list of contained objects for this FlowSet.
|
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, unionfinalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic void setTop(boolean top)
public boolean isTop()
public ToppedSet<T> clone()
FlowSetpublic void copy(FlowSet<T> d)
FlowSetpublic FlowSet<T> emptySet()
AbstractFlowSetpublic void clear()
AbstractFlowSetpublic void union(FlowSet<T> o, FlowSet<T> d)
FlowSetother, putting result into dest.
dest, other and this could be the same object.public void intersection(FlowSet<T> o, FlowSet<T> d)
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 void difference(FlowSet<T> o, FlowSet<T> d)
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 boolean isEmpty()
FlowSetpublic int size()
FlowSetpublic boolean contains(T obj)
FlowSetobj.public List<T> toList()
FlowSetpublic boolean equals(Object o)
equals in class AbstractFlowSet<T>public String toString()
toString in class AbstractFlowSet<T>Copyright © 2020 Soot OSS. All rights reserved.