Package serp.util

Class Numbers


  • public class Numbers
    extends java.lang.Object
    Number utilities.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.Integer INT_NEGONE  
      private static java.lang.Integer[] INTEGERS  
      private static java.lang.Long LONG_NEGONE  
      private static java.lang.Long[] LONGS  
    • Constructor Summary

      Constructors 
      Constructor Description
      Numbers()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Integer valueOf​(int n)
      Return the wrapper for the given number, taking advantage of cached common values.
      static java.lang.Long valueOf​(long n)
      Return the wrapper for the given number, taking advantage of cached common values.
      • Methods inherited from class java.lang.Object

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

      • INT_NEGONE

        private static final java.lang.Integer INT_NEGONE
      • LONG_NEGONE

        private static final java.lang.Long LONG_NEGONE
      • INTEGERS

        private static final java.lang.Integer[] INTEGERS
      • LONGS

        private static final java.lang.Long[] LONGS
    • Constructor Detail

      • Numbers

        public Numbers()
    • Method Detail

      • valueOf

        public static java.lang.Integer valueOf​(int n)
        Return the wrapper for the given number, taking advantage of cached common values.
      • valueOf

        public static java.lang.Long valueOf​(long n)
        Return the wrapper for the given number, taking advantage of cached common values.