| Modifier and Type | Field and Description |
|---|---|
| private double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| protected int | compareNonNull(Double x, Double y)
Implements abstract org. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Implements java. |
| public double | |
| public int | |
| public String |
| precision | back to summary |
|---|---|
| private double precision | |
| DoubleComparator | back to summary |
|---|---|
| public DoubleComparator(double epsilon) | |
| closeEnough | back to summary |
|---|---|
| private static boolean closeEnough(Double x, Double y, double epsilon) | |
| compareNonNull | back to summary |
|---|---|
| protected int compareNonNull(Double x, Double y) Implements abstract org.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Implements java. Doc from java. Indicates whether some other object is "equal to"
this comparator. This method must obey the general contract of
Note that it is always safe not to override
| |
| getEpsilon | back to summary |
|---|---|
| public double getEpsilon() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |