Class Convert


  • public class Convert
    extends java.lang.Object
    Static utility class
    Version:
    1.0.0
    Author:
    ws
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int toInt​(double dbl)
      converts to a valid integer, too large or too small values are truncated
      static int toInt​(long lng)
      converts to a valid integer, too large or too small values are truncated
      • Methods inherited from class java.lang.Object

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

      • toInt

        public static int toInt​(long lng)
        converts to a valid integer, too large or too small values are truncated
      • toInt

        public static int toInt​(double dbl)
        converts to a valid integer, too large or too small values are truncated