org.drools.core.util
Class NumberUtils
java.lang.Object
org.drools.core.util.NumberUtils
public class NumberUtils
- extends Object
|
Method Summary |
static boolean |
isAddOverflow(long op1,
long op2,
long result)
Checks if an addition of 2 longs caused an overflow |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberUtils
public NumberUtils()
isAddOverflow
public static boolean isAddOverflow(long op1,
long op2,
long result)
- Checks if an addition of 2 longs caused an overflow
- Parameters:
op1 - op2 - result -
- Returns:
- true if an overflow occurred, false otherwise
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.