diff options
author | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2020-10-03 11:40:17 -0500 |
---|---|---|
committer | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2020-10-03 11:40:17 -0500 |
commit | 0169e644908c4285536d9d23ab82b0a3a46d9d8b (patch) | |
tree | a921546e3bf022fdc6cc47a2123cfc367fd46557 /src/org/unitConverter/unit/Unitlike.java | |
parent | cd33f886dfbd35c0ee3d8cf5b553ea3481b0b3a1 (diff) |
Added the MultiUnit
Diffstat (limited to 'src/org/unitConverter/unit/Unitlike.java')
-rw-r--r-- | src/org/unitConverter/unit/Unitlike.java | 6 |
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 |