Class FixedValue

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

    public class FixedValue
    extends java.lang.Object
    implements java.util.function.LongToIntFunction
    Yield a fixed value.
    • Constructor Summary

      Constructors 
      Constructor Description
      FixedValue​(int value)  
    • Method Summary

      Modifier and Type Method Description
      int applyAsInt​(long value)  
      • Methods inherited from class java.lang.Object

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

      • FixedValue

        public FixedValue​(int value)
    • Method Detail

      • applyAsInt

        public int applyAsInt​(long value)
        Specified by:
        applyAsInt in interface java.util.function.LongToIntFunction