Drools :: Core 6.1.0.Beta1

org.drools.core.util
Class NumberUtils

java.lang.Object
  extended by org.drools.core.util.NumberUtils

public class NumberUtils
extends Object


Constructor Summary
NumberUtils()
           
 
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
 

Constructor Detail

NumberUtils

public NumberUtils()
Method Detail

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

Drools :: Core 6.1.0.Beta1

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.