summaryrefslogtreecommitdiff
path: root/src/main/java/sevenUnits/utils/DecimalComparison.java
diff options
context:
space:
mode:
authorAdrien Hopkins <adrien.p.hopkins@gmail.com>2025-05-17 23:03:29 -0500
committerAdrien Hopkins <adrien.p.hopkins@gmail.com>2025-05-17 23:03:29 -0500
commitfc5045c4da18b6fd811c6748aa7b5184a80f6769 (patch)
tree0dcb026b17fc20262a2163bb291cbf3659cbec29 /src/main/java/sevenUnits/utils/DecimalComparison.java
parent06bd0e63f1b7bc83009ec3f4d7b048dea015529f (diff)
Setup automated javadoc
./gradlew javadoc
Diffstat (limited to 'src/main/java/sevenUnits/utils/DecimalComparison.java')
-rw-r--r--src/main/java/sevenUnits/utils/DecimalComparison.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/sevenUnits/utils/DecimalComparison.java b/src/main/java/sevenUnits/utils/DecimalComparison.java
index 0515b6b..62c3720 100644
--- a/src/main/java/sevenUnits/utils/DecimalComparison.java
+++ b/src/main/java/sevenUnits/utils/DecimalComparison.java
@@ -69,7 +69,7 @@ public final class DecimalComparison {
* @return whether they are equal
* @since 2019-03-18
* @since v0.2.0
- * @see #hashCode(double)
+ * @see #hash(double)
*/
public static final boolean equals(final double a, final double b) {
return DecimalComparison.equals(a, b, DOUBLE_EPSILON);
@@ -194,7 +194,7 @@ public final class DecimalComparison {
* @param b second value to test
* @return whether they are equal
* @since 2020-09-07
- * @see #hashCode(double)
+ * @see #hash(double)
*/
public static final boolean equals(final UncertainDouble a,
final UncertainDouble b) {
@@ -238,12 +238,13 @@ public final class DecimalComparison {
/**
* Takes the hash code of doubles. Values that are equal according to
- * {@link #equals(double, double)} will have the same hash code.
+ * {@link #equals(double, double)} will probably have the same hash code.
*
* @param d double to hash
* @return hash code of double
* @since 2019-10-16
*/
+ // TODO reconsider using this
public static final int hash(final double d) {
return Float.hashCode((float) d);
}