Package 

Class CoMapper

  • All Implemented Interfaces:
    net.pwall.pipeline.BaseCoAcceptor , net.pwall.pipeline.BaseCoPipeline , net.pwall.pipeline.CoAcceptor , net.pwall.pipeline.CoPipeline

    
    public final class CoMapper<A extends Object, E extends Object, R extends Object>
    extends AbstractCoPipeline<A, E, R>
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      CoMapper(CoAcceptor<E, R> downstream, Function1<A, E> function)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Function1<A, E> getFunction()
      Unit acceptObject(A value) Accept a value, after closed check and test for end of data.
      • Methods inherited from class net.pwall.pipeline.AbstractCoPipeline

        close, emit, flush, getDownstream
      • Methods inherited from class net.pwall.pipeline.BaseAbstractCoAcceptor

        getClosed
      • Methods inherited from class net.pwall.pipeline.BaseCoAcceptor

        getComplete, getResult
      • Methods inherited from class net.pwall.pipeline.BaseCoPipeline

        getStageComplete
      • Methods inherited from class net.pwall.pipeline.AbstractCoAcceptor

        accept
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CoMapper

        CoMapper(CoAcceptor<E, R> downstream, Function1<A, E> function)
    • Method Detail

      • acceptObject

         Unit acceptObject(A value)

        Accept a value, after closed check and test for end of data. Implementing classes must supply an implementation of this method.

        Parameters:
        value - the input value