| Modifier and Type | Field and Description |
|---|---|
| private float |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public int | compareNonNull(Float x, Float y)
Implements abstract org. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Implements java. |
| public float | |
| public int | |
| public String |
| precision | back to summary |
|---|---|
| private float precision | |
| FloatComparator | back to summary |
|---|---|
| public FloatComparator(float epsilon) | |
| closeEnough | back to summary |
|---|---|
| private boolean closeEnough(Float x, Float y, float epsilon) | |
| compareNonNull | back to summary |
|---|---|
| public int compareNonNull(Float x, Float 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 float 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. | |