Class SequenceSupplier<S,O>
- java.lang.Object
-
- com.g2forge.alexandria.java.function.SequenceSupplier<S,O>
-
- All Implemented Interfaces:
IFunctional
,IRunnable
,ISupplier<O>
,IThrowRunnable<RuntimeException>
,Runnable
,Supplier<O>
public class SequenceSupplier<S,O> extends Object implements ISupplier<O>
-
-
Field Summary
Fields Modifier and Type Field Description protected IFunction1<? super S,? extends S>
next
protected IFunction1<? super S,? extends O>
output
protected S
state
-
Constructor Summary
Constructors Constructor Description SequenceSupplier(S state, IFunction1<? super S,? extends S> next, IFunction1<? super S,? extends O> output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description O
get()
protected IFunction1<? super S,? extends S>
getNext()
protected IFunction1<? super S,? extends O>
getOutput()
protected S
getState()
protected void
setState(S state)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.g2forge.alexandria.java.function.ISupplier
run, toFunction, wrap
-
-
-
-
Field Detail
-
state
protected S state
-
next
protected final IFunction1<? super S,? extends S> next
-
output
protected final IFunction1<? super S,? extends O> output
-
-
Constructor Detail
-
SequenceSupplier
@ConstructorProperties({"state","next","output"}) public SequenceSupplier(S state, IFunction1<? super S,? extends S> next, IFunction1<? super S,? extends O> output)
-
-