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, toArray
create, getChildren
annsSize, getFactory, hasAnn, hasAnn, removeAnn, removeAnn
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
spliterator
parallelStream, removeIf, stream
protected 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()
EvalSet
EvalSet provides a default implementation that always returns null.
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)
public Iterator<net.sourceforge.czt.z.ast.Expr> iterator()
EvalSet
iterator
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 EvalSet
public ListIterator<net.sourceforge.czt.z.ast.Expr> listIterator()
EvalSet
listIterator
in class EvalSet
public Iterator<net.sourceforge.czt.z.ast.Expr> sortedIterator()
EvalSet
sortedIterator
in class EvalSet
public BigInteger getLower()
public BigInteger getUpper()
public boolean add(net.sourceforge.czt.z.ast.Expr e)
EvalSet
public boolean addAll(Collection<? extends net.sourceforge.czt.z.ast.Expr> coll)
EvalSet
public <R> R accept(net.sourceforge.czt.util.Visitor<R> visitor)
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.