public class IlrComparisonPrecisionDescriptor
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
USE_ALL_DIGITS
Compares all digits to the right of the decimal point.
|
| Constructor and Description |
|---|
IlrComparisonPrecisionDescriptor()
Creates a new
IlrComparisonPrecisionDescriptor object. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getDecimalPrecision()
Returns the precision used for
double comparison. |
int |
hashCode() |
void |
setDecimalPrecision(int theDecimalPrecision)
Sets the precision used for
double comparison. |
public static final int USE_ALL_DIGITS
public IlrComparisonPrecisionDescriptor()
IlrComparisonPrecisionDescriptor object.
The new instance has the following default value:
USE_ALL_DIGITSpublic int getDecimalPrecision()
double comparison.setDecimalPrecision(int)public void setDecimalPrecision(int theDecimalPrecision)
double comparison.theDecimalPrecision - The number of digits to the right of the decimal point to
take into account when comparing decimal numbers. Set to
USE_ALL_DIGITS so all digits to the right of the
decimal point are taken into account.public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(Object)© Copyright IBM Corp. 1987, 2017