Class BigDecimalUtil
- java.lang.Object
-
- hu.icellmobilsoft.coffee.tool.utils.bigdecimal.BigDecimalUtil
-
public class BigDecimalUtil extends Object
Helper class to handle BigDecimal retain precision of it's double value- Since:
- 1.0.0
- Author:
- robert.kaplar
-
-
Field Summary
Fields Modifier and Type Field Description static BigDecimalPERCENTAGE_1Value 0.01
-
Constructor Summary
Constructors Constructor Description BigDecimalUtil()Default constructor, constructs a new object.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontainsBigDecimal(BigDecimal[] bigDecimals, BigDecimal value)Check that the array contains the specific value.static booleancontainsBigDecimal(Collection<BigDecimal> bigDecimals, BigDecimal value)Check that the collection contains the specific value.
-
-
-
Field Detail
-
PERCENTAGE_1
public static final BigDecimal PERCENTAGE_1
Value 0.01
-
-
Method Detail
-
containsBigDecimal
public static boolean containsBigDecimal(BigDecimal[] bigDecimals, BigDecimal value)
Check that the array contains the specific value.- Parameters:
bigDecimals- array ofBigDecimalsvalue-BigDecimalvalue to search in the array- Returns:
- if
bigDecimalscontainsvalue
-
containsBigDecimal
public static boolean containsBigDecimal(Collection<BigDecimal> bigDecimals, BigDecimal value)
Check that the collection contains the specific value.- Parameters:
bigDecimals-CollectionofBigDecimalsvalue-BigDecimalvalue to search in theCollection- Returns:
- if
bigDecimalscontainsvalue
-
-