insensa.helpers
Class DataTypeHelper
java.lang.Object
insensa.helpers.DataTypeHelper
public class DataTypeHelper
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataTypeHelper
public DataTypeHelper()
fitsInDataType
public static boolean fitsInDataType(int dataType,
java.math.BigDecimal number)
- Parameters:
dataType
- number
-
- Returns:
getBestDatatype
public static int getBestDatatype(java.math.BigDecimal number)
- Parameters:
number
-
- Returns:
getBestDataType
public static int getBestDataType(float number)
- Parameters:
number
-
- Returns:
getDataTypeName
public static java.lang.String getDataTypeName(int dataType)
- Parameters:
dataType
-
- Returns:
isFloatingDataType
public static boolean isFloatingDataType(int dataType)
- Parameters:
dataType
-
- Returns: