Class NumberUtils


  • public class NumberUtils
    extends java.lang.Object
    Utils class for everything with numbers
    Author:
    f.conrads
    • Constructor Summary

      Constructors 
      Constructor Description
      NumberUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Double getDouble​(java.lang.String nm)
      Returns either a double representation of the String nm or null.
      static java.lang.Long getLong​(java.lang.String nm)
      Returns either a long represantation of the String nm or null.
      • Methods inherited from class java.lang.Object

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

      • NumberUtils

        public NumberUtils()
    • Method Detail

      • getLong

        public static java.lang.Long getLong​(java.lang.String nm)
        Returns either a long represantation of the String nm or null.
        Parameters:
        nm - String which should be parsed
        Returns:
        String as a long representation if String is a Long, otherwise null
      • getDouble

        public static java.lang.Double getDouble​(java.lang.String nm)
        Returns either a double representation of the String nm or null.
        Parameters:
        nm - String which should be parsed
        Returns:
        String as a double representation if String is a double, otherwise null