java.lang.Object
com.github.hakenadu.javalangchains.chains.base.StreamUnwrappingChain<T>
- Type Parameters:
T - Type of the element in the Stream
- All Implemented Interfaces:
Chain<Stream<T>,T>
public final class StreamUnwrappingChain<T>
extends Object
implements Chain<Stream<T>,T>
a utility chain which is used to retrieve the element from a singleton stream
-
-
Method Summary
| Modifier and Type |
Method |
Description |
T |
run(Stream<T> input) |
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.hakenadu.javalangchains.chains.Chain
chain
-
Constructor Details
-
public StreamUnwrappingChain()
-
Method Details
-
Description copied from interface: Chain
- Specified by:
run in interface Chain<Stream<T>,T>
- Parameters:
input - this chain's input
- Returns:
- this chain's output