T
- the planner expression type contained in the setpublic class PlannerExpressionPointerSet<T extends PlannerExpression> extends AbstractCollection<T>
PlannerExpression
s that uses reference ("pointer") equality to determine equivalence for the
purposes of set membership, rather than the Object.equals(Object)
method used by the Java Set
interface.
This is important for implementing the memo data structure in GroupExpressionRef
Constructor and Description |
---|
PlannerExpressionPointerSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T expression) |
void |
addAll(PlannerExpressionPointerSet<T> otherSet) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
contains(T expression) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(T expression) |
int |
size() |
addAll, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public boolean add(@Nonnull T expression)
add
in interface Collection<T extends PlannerExpression>
add
in class AbstractCollection<T extends PlannerExpression>
public void addAll(@Nonnull PlannerExpressionPointerSet<T> otherSet)
public boolean contains(Object o)
contains
in interface Collection<T extends PlannerExpression>
contains
in class AbstractCollection<T extends PlannerExpression>
public void clear()
clear
in interface Collection<T extends PlannerExpression>
clear
in class AbstractCollection<T extends PlannerExpression>
public boolean isEmpty()
isEmpty
in interface Collection<T extends PlannerExpression>
isEmpty
in class AbstractCollection<T extends PlannerExpression>
public int size()
size
in interface Collection<T extends PlannerExpression>
size
in class AbstractCollection<T extends PlannerExpression>
@Nonnull public Iterator<T> iterator()
iterator
in interface Iterable<T extends PlannerExpression>
iterator
in interface Collection<T extends PlannerExpression>
iterator
in class AbstractCollection<T extends PlannerExpression>