S
- The type of formulaspublic class DefaultFormulaStream<S extends Formula> extends java.lang.Object implements FormulaStream<S>
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<S> |
formulas
The collection of formulas.
|
private java.util.Iterator<S> |
it
The actual iterator.
|
private boolean |
neverending
Whether this stream is never-ending (formulas are repeated once through).
|
Constructor and Description |
---|
DefaultFormulaStream(java.util.Collection<S> formulas)
Creates a new default stream with the given formulas that ends after all formulas
have been streamed.
|
DefaultFormulaStream(java.util.Collection<S> formulas,
boolean neverending)
Creates a new default stream with the given formulas.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
S |
next() |
void |
remove() |
private boolean neverending
public DefaultFormulaStream(java.util.Collection<S> formulas)
formulas
- a collection of formulas.public DefaultFormulaStream(java.util.Collection<S> formulas, boolean neverending)
formulas
- a collection of formulas.neverending
- whether this stream is never-ending (formulas are repeated once through).public boolean hasNext()
public S next()