public class DiscreteSet extends EvalSet
EvalSet.SubsetIterator<E>| Modifier and Type | Field and Description |
|---|---|
protected Set<net.sourceforge.czt.z.ast.Expr> |
contents_
The elements of this set.
|
protected List<net.sourceforge.czt.z.ast.Expr> |
listContents_
This is a copy of the elements of this set.
|
INFINITE_SIZE, UNKNOWN_SIZE| Constructor and Description |
|---|
DiscreteSet() |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(net.sourceforge.czt.util.Visitor<R> visitor) |
boolean |
add(net.sourceforge.czt.z.ast.Expr e)
Throws UnsupportedOperationException.
|
boolean |
addAll(Collection<? extends net.sourceforge.czt.z.ast.Expr> coll)
Throws UnsupportedOperationException.
|
boolean |
contains(Object obj) |
double |
estSize()
Estimate the size of the set.
|
BigInteger |
getLower()
Calculates minimum of all the elements.
|
BigInteger |
getUpper()
Calculates maximum of all the elements.
|
boolean |
isEmpty() |
Iterator<net.sourceforge.czt.z.ast.Expr> |
iterator()
Iterate through all members of the set.
|
ListIterator<net.sourceforge.czt.z.ast.Expr> |
listIterator()
Iterate forwards/backwards through all members of the set.
|
BigInteger |
maxSize()
The maximum size of the set in the default environment.
|
int |
size() |
Iterator<net.sourceforge.czt.z.ast.Expr> |
sortedIterator()
Iterate through all members of the set in sorted order.
|
String |
toString()
Each subclass should implement a nice toString.
|
clear, containsAll, equals, estSubsetSize, getAnn, getAnns, hashCode, matchIterator, remove, removeAll, retainAll, subsetIterator, toArray, toArraycreate, getChildrenannsSize, getFactory, hasAnn, hasAnn, removeAnn, removeAnnclone, finalize, getClass, notify, notifyAll, wait, wait, waitspliteratorparallelStream, removeIf, streamprotected Set<net.sourceforge.czt.z.ast.Expr> contents_
protected List<net.sourceforge.czt.z.ast.Expr> listContents_
public boolean isEmpty()
public int size()
public BigInteger maxSize()
EvalSetEvalSet provides a default implementation that always returns null.
public 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)
public Iterator<net.sourceforge.czt.z.ast.Expr> iterator()
EvalSetiterator in interface Iterable<net.sourceforge.czt.z.ast.Expr>iterator in interface Collection<net.sourceforge.czt.z.ast.Expr>iterator in interface Set<net.sourceforge.czt.z.ast.Expr>iterator in class EvalSetpublic ListIterator<net.sourceforge.czt.z.ast.Expr> listIterator()
EvalSetlistIterator in class EvalSetpublic Iterator<net.sourceforge.czt.z.ast.Expr> sortedIterator()
EvalSetsortedIterator in class EvalSetpublic BigInteger getLower()
public BigInteger getUpper()
public boolean add(net.sourceforge.czt.z.ast.Expr e)
EvalSetpublic boolean addAll(Collection<? extends net.sourceforge.czt.z.ast.Expr> coll)
EvalSetpublic <R> R accept(net.sourceforge.czt.util.Visitor<R> visitor)
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.