Package serp.util

Class Numbers


  • public class Numbers
    extends java.lang.Object
    Number utilities.
    Author:
    Abe White
    • 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
    • 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.