public class BigDecimalUtils extends Object
| Constructor and Description |
|---|
BigDecimalUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equalIgnoreScale(Collection<BigDecimal> collection1,
Collection<BigDecimal> collection2) |
static <T> boolean |
equalIgnoreScaleOnValues(Map<T,BigDecimal> map1,
Map<T,BigDecimal> map2)
Compares if two maps with BigDecimal values are numerically equivalent, i.e, if the keys are
Object.equals(Object) and the values numerically equivalent. |
static int |
hashCodeIgnoringScale(Collection<BigDecimal> collection) |
static int |
hashCodeIgnoringScale(Map<?,BigDecimal> map) |
public static boolean equalIgnoreScale(Collection<BigDecimal> collection1, Collection<BigDecimal> collection2)
public static <T> boolean equalIgnoreScaleOnValues(Map<T,BigDecimal> map1, Map<T,BigDecimal> map2)
Object.equals(Object) and the values numerically equivalent.map1 - the first mapmap2 - the second mappublic static int hashCodeIgnoringScale(Map<?,BigDecimal> map)
public static int hashCodeIgnoringScale(Collection<BigDecimal> collection)
Copyright © 2017. All rights reserved.