diff options
author | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2019-04-10 19:31:59 -0400 |
---|---|---|
committer | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2019-04-10 19:31:59 -0400 |
commit | 91ee53876aeeb52e980dd1fa976fae06d890ba19 (patch) | |
tree | 7efe3e7384464bbed2e29af21ccd4fb979525062 /src/org/unitConverter/unit/BaseUnit.java | |
parent | bfe1f266922bffd3c0c8d8906535be7621217e7a (diff) |
Removed AbstractUnit's unit counting functionnality.
The startup unit count is now performed by the UnitDatabase.
Diffstat (limited to 'src/org/unitConverter/unit/BaseUnit.java')
-rwxr-xr-x | src/org/unitConverter/unit/BaseUnit.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/unitConverter/unit/BaseUnit.java b/src/org/unitConverter/unit/BaseUnit.java index 2def48e..643272f 100755 --- a/src/org/unitConverter/unit/BaseUnit.java +++ b/src/org/unitConverter/unit/BaseUnit.java @@ -85,6 +85,14 @@ public final class BaseUnit extends LinearUnit { } /** + * @return true if the unit is a "full base" unit like the metre or second. + * @since 2019-04-10 + */ + public final boolean isFullBase() { + return this.isFullBase; + } + + /** * Returns the product of this unit and another. * <p> * Two units can be multiplied if they are part of the same unit system. If {@code multiplier} does not meet this |