org.littleshoot.util
Class NumberUtils

java.lang.Object
  extended by org.littleshoot.util.NumberUtils

public class NumberUtils
extends Object

Number utility class.


Method Summary
static boolean isBigger(BigInteger big1, BigInteger big2)
          Returns whether the first BigInteger is bigger than the second.
static boolean isBiggerOrEqual(BigInteger big1, BigInteger big2)
          Returns whether the first BigInteger is bigger than or equal to the second.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isBigger

public static boolean isBigger(BigInteger big1,
                               BigInteger big2)
Returns whether the first BigInteger is bigger than the second.

Parameters:
big1 - The first BigInteger to compare.
big2 - The second BigInteger to compare.
Returns:
true if the first BigInteger is bigger than the second, otherwise false.

isBiggerOrEqual

public static boolean isBiggerOrEqual(BigInteger big1,
                                      BigInteger big2)
Returns whether the first BigInteger is bigger than or equal to the second.

Parameters:
big1 - The first BigInteger to compare.
big2 - The second BigInteger to compare.
Returns:
true if the first BigInteger is bigger than or equal to the second, otherwise false.


Copyright © 2011-2013 LittleShoot. All Rights Reserved.