summaryrefslogtreecommitdiff
path: root/src/org/unitConverter/unit/Unitlike.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/unitConverter/unit/Unitlike.java')
-rw-r--r--src/org/unitConverter/unit/Unitlike.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/unitConverter/unit/Unitlike.java b/src/org/unitConverter/unit/Unitlike.java
index a6ddb04..8077771 100644
--- a/src/org/unitConverter/unit/Unitlike.java
+++ b/src/org/unitConverter/unit/Unitlike.java
@@ -102,7 +102,7 @@ public abstract class Unitlike<V> implements Nameable {
* @param unitBase
* @since 2020-09-07
*/
- Unitlike(ObjectProduct<BaseUnit> unitBase, NameSymbol ns) {
+ protected Unitlike(ObjectProduct<BaseUnit> unitBase, NameSymbol ns) {
this.unitBase = Objects.requireNonNull(unitBase,
"unitBase may not be null");
this.nameSymbol = Objects.requireNonNull(ns, "ns may not be null");
@@ -148,7 +148,7 @@ public abstract class Unitlike<V> implements Nameable {
* {@code other.convertFromBase(this.convertToBase(value))}.
* Therefore, overriding either of those methods will change the
* output of this method.
- *
+ *
* @param other unit to convert to
* @param value value to convert
* @return converted value
@@ -175,7 +175,7 @@ public abstract class Unitlike<V> implements Nameable {
* {@code other.convertFromBase(this.convertToBase(value))}.
* Therefore, overriding either of those methods will change the
* output of this method.
- *
+ *
* @param other unitlike form to convert to
* @param value value to convert
* @param <W> type of value to convert to