Class ToInt

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

    public class ToInt
    extends java.lang.Object
    implements java.util.function.LongToIntFunction
    Convert the input value to an int with long modulus remainder. If the scale is chosen, then the value is wrapped at this value. Otherwise, Integer.MAX_VALUE is used.
    • Constructor Summary

      Constructors 
      Constructor Description
      ToInt()  
      ToInt​(int scale)  
    • Method Summary

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

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

      • ToInt

        public ToInt​(int scale)
      • ToInt

        public ToInt()
    • Method Detail

      • applyAsInt

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