summaryrefslogtreecommitdiff
path: root/src/main/java/sevenUnitsGUI/StandardDisplayRules.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/sevenUnitsGUI/StandardDisplayRules.java')
-rw-r--r--src/main/java/sevenUnitsGUI/StandardDisplayRules.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/sevenUnitsGUI/StandardDisplayRules.java b/src/main/java/sevenUnitsGUI/StandardDisplayRules.java
index 0c0ba8e..cc69d31 100644
--- a/src/main/java/sevenUnitsGUI/StandardDisplayRules.java
+++ b/src/main/java/sevenUnitsGUI/StandardDisplayRules.java
@@ -28,12 +28,14 @@ import sevenUnits.utils.UncertainDouble;
* A static utility class that can be used to make display rules for the
* presenter.
*
+ * @since v0.4.0
* @since 2022-04-18
*/
public final class StandardDisplayRules {
/**
* A rule that rounds to a fixed number of decimal places.
*
+ * @since v0.4.0
* @since 2022-04-18
*/
public static final class FixedDecimals
@@ -94,6 +96,7 @@ public final class StandardDisplayRules {
/**
* A rule that rounds to a fixed number of significant digits.
*
+ * @since v0.4.0
* @since 2022-04-18
*/
public static final class FixedPrecision
@@ -162,6 +165,7 @@ public final class StandardDisplayRules {
* This means the output will have around as many significant figures as the
* input.
*
+ * @since v0.4.0
* @since 2022-04-18
*/
public static final class UncertaintyBased
@@ -188,6 +192,7 @@ public final class StandardDisplayRules {
/**
* @param decimalPlaces decimal places to round to
* @return a rounding rule that rounds to fixed number of decimal places
+ * @since v0.4.0
* @since 2022-04-18
*/
public static final FixedDecimals fixedDecimals(int decimalPlaces) {
@@ -198,6 +203,7 @@ public final class StandardDisplayRules {
* @param significantFigures significant figures to round to
* @return a rounding rule that rounds to a fixed number of significant
* figures
+ * @since v0.4.0
* @since 2022-04-18
*/
public static final FixedPrecision fixedPrecision(int significantFigures) {
@@ -211,6 +217,7 @@ public final class StandardDisplayRules {
* @return display rule
* @throws IllegalArgumentException if the provided string is not that of a
* standard rule.
+ * @since v0.4.0
* @since 2021-12-24
*/
public static final Function<UncertainDouble, String> getStandardRule(
@@ -236,6 +243,7 @@ public final class StandardDisplayRules {
/**
* @return an UncertainDouble-based rounding rule
+ * @since v0.4.0
* @since 2022-04-18
*/
public static final UncertaintyBased uncertaintyBased() {