Package org.firebirdsql.util
Class NumericHelper
- java.lang.Object
- 
- org.firebirdsql.util.NumericHelper
 
- 
 public final class NumericHelper extends java.lang.ObjectHelper for numeric values.- Since:
- 2.2.11
- Author:
- Mark Rotteveel
 
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanfitsUnsigned32BitInteger(long longValue)Checks if the supplied long would fit in an unsigned 32 bit integer.static longtoUnsignedLong(int intValue)Returns the int as an unsigned long (no sign extension).
 
- 
- 
- 
Method Detail- 
toUnsignedLongpublic static long toUnsignedLong(int intValue) Returns the int as an unsigned long (no sign extension).- Parameters:
- intValue- Integer value
- Returns:
- intValueas an unsiged long.
 
 - 
fitsUnsigned32BitIntegerpublic static boolean fitsUnsigned32BitInteger(long longValue) Checks if the supplied long would fit in an unsigned 32 bit integer.In essence this checks if longValue >= 0 && longValue <= 0xffffffffL- Parameters:
- longValue- Long value to check
- Returns:
- trueif the long value fits as an unsigned 32 bit value
 
 
- 
 
-