Class Flow

  • All Implemented Interfaces:
    java.util.function.LongUnaryOperator

    public class Flow
    extends java.lang.Object
    implements java.util.function.LongUnaryOperator
    Combine multiple unary operators into a single operator as a higher-order function. This allows for flows to be used in places where a single function is allowed.
    • Constructor Summary

      Constructors 
      Constructor Description
      Flow​(java.util.function.LongUnaryOperator... ops)  
    • Method Summary

      Modifier and Type Method Description
      long applyAsLong​(long operand)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.LongUnaryOperator

        andThen, compose
    • Constructor Detail

      • Flow

        public Flow​(java.util.function.LongUnaryOperator... ops)
    • Method Detail

      • applyAsLong

        public long applyAsLong​(long operand)
        Specified by:
        applyAsLong in interface java.util.function.LongUnaryOperator