summaryrefslogtreecommitdiff
path: root/src/org/unitConverter/unit/BaseUnit.java
diff options
context:
space:
mode:
authorAdrien Hopkins <adrien.p.hopkins@gmail.com>2019-04-10 19:31:59 -0400
committerAdrien Hopkins <adrien.p.hopkins@gmail.com>2019-04-10 19:31:59 -0400
commit91ee53876aeeb52e980dd1fa976fae06d890ba19 (patch)
tree7efe3e7384464bbed2e29af21ccd4fb979525062 /src/org/unitConverter/unit/BaseUnit.java
parentbfe1f266922bffd3c0c8d8906535be7621217e7a (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-xsrc/org/unitConverter/unit/BaseUnit.java8
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