public class UnionSet extends DefaultEvalSet
DefaultEvalSet.SubsetIterator<E>
memberList_
INFINITE_SIZE, UNKNOWN_SIZE
Constructor and Description |
---|
UnionSet(EvalSet left,
EvalSet right)
TODO: could combine/simplify some sets rather than creating union.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object obj)
Tests for membership of the set.
|
double |
estSize()
Estimate the size of the set.
|
BigInteger |
getLower()
Calculates minimum of all the elements.
|
BigInteger |
getUpper()
Calculates maximum of all the elements.
|
BigInteger |
maxSize()
The maximum size of the set in the default environment.
|
protected net.sourceforge.czt.z.ast.Expr |
nextMember()
Returns the next expression in the set.
|
String |
toString()
Each subclass should implement a nice toString.
|
equals, estSubsetSize, evaluateFully, hashCode, isEmpty, iterator, listIterator, resetResult, size, sortedIterator, subsetIterator, toArray, toArray
accept, add, addAll, clear, containsAll, getAnn, getAnns, matchIterator, remove, removeAll, retainAll
create, getChildren
annsSize, getFactory, hasAnn, hasAnn, removeAnn, removeAnn
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
spliterator
parallelStream, removeIf, stream
public BigInteger maxSize()
DefaultEvalSet
EvalSet provides a default implementation that always returns null.
maxSize
in class DefaultEvalSet
public double estSize()
EvalSet
EvalSet provides a default implementation that is the same as maxSize(), but converted to a double. So maxSize()==null gives EvalSet.INFINITE_SIZE here.
public boolean contains(Object obj)
DefaultEvalSet
contains
in interface Collection<net.sourceforge.czt.z.ast.Expr>
contains
in interface Set<net.sourceforge.czt.z.ast.Expr>
contains
in class DefaultEvalSet
obj
- The fully evaluated expression.public BigInteger getLower()
getLower
in class DefaultEvalSet
public BigInteger getUpper()
getUpper
in class DefaultEvalSet
protected net.sourceforge.czt.z.ast.Expr nextMember()
DefaultEvalSet
memberSet_
.nextMember
in class DefaultEvalSet
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.