protected static final class AbstractQuantity.Equalizer extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Equalizer() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasEquality(Number valueA,
Number valueB)
Check if the both value has equality number, in other words, 1 is equals to 1.0000 and 1.0.
|
static BigDecimal |
toBigDecimal(Number value)
Converts a number to
BigDecimal |
protected Equalizer()
public static BigDecimal toBigDecimal(Number value)
BigDecimalvalue - the value to be convertedpublic static boolean hasEquality(Number valueA, Number valueB)
*value() method of BigDecimal.compareTo(Object) is equal to zero.valueA - the value avalueB - the value BBigDecimal.compareTo(Object) == zeroCopyright © 2005–2017 Units of Measurement project. All rights reserved.