com.ibm.tivoli.maximo.util

Class NumberUtil

  • java.lang.Object
    • com.ibm.tivoli.maximo.util.NumberUtil


  • public class NumberUtil
    extends java.lang.Object
    Simple class for dealing with Numbers
    • Constructor Summary

      Constructors 
      Constructor and Description
      NumberUtil() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.util.List findMissingNumbers(java.util.List orders, int first, int last) 
      static int findNearest(int of, java.util.List orders) 
      static int toInt(java.lang.String num, int defVal)
      Parses the number to an int, or returns the default value if it cannot be parsed as int
      • Methods inherited from class java.lang.Object

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

      • NumberUtil

        public NumberUtil()
    • Method Detail

      • toInt

        public static int toInt(java.lang.String num,
                                int defVal)
        Parses the number to an int, or returns the default value if it cannot be parsed as int
        Parameters:
        num -
        defVal -
        Returns:
      • findMissingNumbers

        public static java.util.List findMissingNumbers(java.util.List orders,
                                                        int first,
                                                        int last)
      • findNearest

        public static int findNearest(int of,
                                      java.util.List orders)