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, toArrayaccept, add, addAll, clear, containsAll, getAnn, getAnns, matchIterator, remove, removeAll, retainAllcreate, getChildrenannsSize, getFactory, hasAnn, hasAnn, removeAnn, removeAnnclone, finalize, getClass, notify, notifyAll, wait, wait, waitspliteratorparallelStream, removeIf, streampublic BigInteger maxSize()
DefaultEvalSetEvalSet provides a default implementation that always returns null.
maxSize in class DefaultEvalSetpublic double estSize()
EvalSetEvalSet 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)
DefaultEvalSetcontains in interface Collection<net.sourceforge.czt.z.ast.Expr>contains in interface Set<net.sourceforge.czt.z.ast.Expr>contains in class DefaultEvalSetobj - The fully evaluated expression.public BigInteger getLower()
getLower in class DefaultEvalSetpublic BigInteger getUpper()
getUpper in class DefaultEvalSetprotected net.sourceforge.czt.z.ast.Expr nextMember()
DefaultEvalSetmemberSet_.nextMember in class DefaultEvalSetCopyright © 2003–2016 Community Z Tools Project. All rights reserved.