Class FixedValues

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

    public class FixedValues
    extends java.lang.Object
    implements java.util.function.LongUnaryOperator
    Yield one of the specified values, rotating through them as the input value increases.
    • Constructor Summary

      Constructors 
      Constructor Description
      FixedValues​(long... values)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long applyAsLong​(long value)  
      • 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

      • FixedValues

        public FixedValues​(long... values)
    • Method Detail

      • applyAsLong

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