Class ToShort

  • All Implemented Interfaces:
    java.util.function.LongFunction<java.lang.Short>

    public class ToShort
    extends java.lang.Object
    implements java.util.function.LongFunction<java.lang.Short>
    Convert the input value to a short.
    • Constructor Summary

      Constructors 
      Constructor Description
      ToShort()  
      ToShort​(int wrapat)
      This form allows for limiting the short values at a lower limit than Short.MAX_VALUE.
    • Method Summary

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

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

      • ToShort

        public ToShort()
      • ToShort

        public ToShort​(int wrapat)
        This form allows for limiting the short values at a lower limit than Short.MAX_VALUE.
        Parameters:
        wrapat - The maximum value to return.
    • Method Detail

      • apply

        public java.lang.Short apply​(long input)
        Specified by:
        apply in interface java.util.function.LongFunction<java.lang.Short>