oemware.core.util
Class NumberUtils

java.lang.Object
  extended by oemware.core.util.NumberUtils

public final class NumberUtils
extends java.lang.Object

The number utils.


Field Summary
static int SHORT_CACHE_MAX
           
 
Constructor Summary
NumberUtils()
           
 
Method Summary
static boolean equals(java.math.BigDecimal pValue1, java.math.BigDecimal pValue2)
          Check to see if the big decimals are equal (null safe).
static boolean equals(java.math.BigInteger pValue1, java.math.BigInteger pValue2)
          Check to see if the big ints are equal (null safe).
static boolean equals(java.lang.Double pValue1, java.lang.Double pValue2)
          Check to see if doubles are equal (null safe).
static boolean equals(java.lang.Integer pValue1, java.lang.Integer pValue2)
          Check to see if ints are equal (null safe).
static boolean equals(java.lang.Long pValue1, java.lang.Long pValue2)
          Check to see if longs are equal (null safe).
static boolean equals(java.lang.Short pValue1, java.lang.Short pValue2)
          Check to see if the shorts are equal (null safe).
static java.lang.Short getShort(int pValue)
          Returns the cached copy or a new object for the primitive passed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHORT_CACHE_MAX

public static final int SHORT_CACHE_MAX
See Also:
Constant Field Values
Constructor Detail

NumberUtils

public NumberUtils()
Method Detail

getShort

public static final java.lang.Short getShort(int pValue)
Returns the cached copy or a new object for the primitive passed.

Parameters:
pValue - The value.
Returns:
The object.

equals

public static final boolean equals(java.lang.Double pValue1,
                                   java.lang.Double pValue2)
Check to see if doubles are equal (null safe).

Parameters:
pValue1 - The first value.
pValue2 - The second value.

equals

public static final boolean equals(java.lang.Long pValue1,
                                   java.lang.Long pValue2)
Check to see if longs are equal (null safe).

Parameters:
pValue1 - The first value.
pValue2 - The second value.

equals

public static final boolean equals(java.lang.Integer pValue1,
                                   java.lang.Integer pValue2)
Check to see if ints are equal (null safe).

Parameters:
pValue1 - The first value.
pValue2 - The second value.

equals

public static final boolean equals(java.lang.Short pValue1,
                                   java.lang.Short pValue2)
Check to see if the shorts are equal (null safe).

Parameters:
pValue1 - The first value.
pValue2 - The second value.

equals

public static final boolean equals(java.math.BigInteger pValue1,
                                   java.math.BigInteger pValue2)
Check to see if the big ints are equal (null safe).

Parameters:
pValue1 - The first value.
pValue2 - The second value.

equals

public static final boolean equals(java.math.BigDecimal pValue1,
                                   java.math.BigDecimal pValue2)
Check to see if the big decimals are equal (null safe).

Parameters:
pValue1 - The first value.
pValue2 - The second value.


Copyright © 2009 Deft Labs - Released under LGPL, Version 3.0