Package org.ojalgo.data.batch
Class BatchNode.TwoStepWrapper<T>
- java.lang.Object
-
- org.ojalgo.data.batch.BatchNode.TwoStepWrapper<T>
-
- All Implemented Interfaces:
TwoStepMapper<T,java.lang.Boolean>
private static final class BatchNode.TwoStepWrapper<T> extends java.lang.Object implements TwoStepMapper<T,java.lang.Boolean>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.type.function.TwoStepMapper
TwoStepMapper.Combineable<T,R,A extends TwoStepMapper.Combineable<T,R,A>>, TwoStepMapper.KeyCounter<T,G>, TwoStepMapper.Mergeable<T,R>, TwoStepMapper.SimpleCache<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Consumer<T>
myActualConsumer
-
Constructor Summary
Constructors Constructor Description TwoStepWrapper(java.util.function.Supplier<java.util.function.Consumer<T>> consumerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consume(T item)
Input/consume the items that should be mappedjava.lang.Boolean
getResults()
Output the mapped resultsvoid
reset()
Reset, so it can be re-used
-
-
-
Field Detail
-
myActualConsumer
private final java.util.function.Consumer<T> myActualConsumer
-
-
Constructor Detail
-
TwoStepWrapper
TwoStepWrapper(java.util.function.Supplier<java.util.function.Consumer<T>> consumerFactory)
-
-
Method Detail
-
consume
public void consume(T item)
Description copied from interface:TwoStepMapper
Input/consume the items that should be mapped- Specified by:
consume
in interfaceTwoStepMapper<T,java.lang.Boolean>
-
getResults
public java.lang.Boolean getResults()
Description copied from interface:TwoStepMapper
Output the mapped results- Specified by:
getResults
in interfaceTwoStepMapper<T,java.lang.Boolean>
-
reset
public void reset()
Description copied from interface:TwoStepMapper
Reset, so it can be re-used- Specified by:
reset
in interfaceTwoStepMapper<T,java.lang.Boolean>
-
-