Class DefaultFormulaStream<S extends Formula>
java.lang.Object
org.tweetyproject.commons.streams.DefaultFormulaStream<S>
- Type Parameters:
S- The type of formulas
- All Implemented Interfaces:
Iterator<S>,FormulaStream<S>
This class models a default stream on the formulas of a given collection.
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultFormulaStream(Collection<S> formulas) Creates a new default stream with the given formulas that ends after all formulas have been streamed.DefaultFormulaStream(Collection<S> formulas, boolean neverending) Creates a new default stream with the given formulas. -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
DefaultFormulaStream
Creates a new default stream with the given formulas that ends after all formulas have been streamed.- Parameters:
formulas- a collection of formulas.
-
DefaultFormulaStream
Creates a new default stream with the given formulas.- Parameters:
formulas- a collection of formulas.neverending- whether this stream is never-ending (formulas are repeated once through).
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-