Class OverFlowUtil
- java.lang.Object
-
- risesoft.data.transfer.core.column.impl.OverFlowUtil
-
public final class OverFlowUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static BigDecimalMAX_DOUBLE_POSITIVEstatic BigIntegerMAX_LONGstatic BigDecimalMIN_DOUBLE_POSITIVEstatic BigIntegerMIN_LONG
-
Constructor Summary
Constructors Constructor Description OverFlowUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisDoubleOverFlow(BigDecimal decimal)static booleanisLongOverflow(BigInteger integer)static voidvalidateDoubleNotOverFlow(BigDecimal decimal)static voidvalidateLongNotOverFlow(BigInteger integer)
-
-
-
Field Detail
-
MAX_LONG
public static final BigInteger MAX_LONG
-
MIN_LONG
public static final BigInteger MIN_LONG
-
MIN_DOUBLE_POSITIVE
public static final BigDecimal MIN_DOUBLE_POSITIVE
-
MAX_DOUBLE_POSITIVE
public static final BigDecimal MAX_DOUBLE_POSITIVE
-
-
Method Detail
-
isLongOverflow
public static boolean isLongOverflow(BigInteger integer)
-
validateLongNotOverFlow
public static void validateLongNotOverFlow(BigInteger integer)
-
isDoubleOverFlow
public static boolean isDoubleOverFlow(BigDecimal decimal)
-
validateDoubleNotOverFlow
public static void validateDoubleNotOverFlow(BigDecimal decimal)
-
-