diff options
author | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2019-01-25 19:09:47 -0500 |
---|---|---|
committer | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2019-01-25 19:09:47 -0500 |
commit | 8ff06e8e5661645c00656c40d15c8d13db665b57 (patch) | |
tree | 61ac16a6a78f4b2e1ee939e9527a59d9c74c1dd6 /src/unitConverter/unit/SIPrefix.java | |
parent | 43feeeab69b723e02694a2d93eaa44c3007665e1 (diff) |
Added code from the previous implementation of the Unit Converter
It includes:
- a units database to store units
- unit prefix classes
- a unit converter GUI that accepts some unit math
NOTE: A lot of this code will be edited in the near future.
Diffstat (limited to 'src/unitConverter/unit/SIPrefix.java')
-rwxr-xr-x | src/unitConverter/unit/SIPrefix.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/unitConverter/unit/SIPrefix.java b/src/unitConverter/unit/SIPrefix.java index 452d46f..39f1a8c 100755 --- a/src/unitConverter/unit/SIPrefix.java +++ b/src/unitConverter/unit/SIPrefix.java @@ -25,17 +25,17 @@ public enum SIPrefix implements UnitPrefix { 1e24), DECI(0.1), CENTI(0.01), MILLI( 1e-3), MICRO(1e-6), NANO(1e-9), PICO(1e-12), FEMTO(1e-15), ATTO(1e-18), ZEPTO(1e-21), YOCTO(1e-24); - private final double value; + private final double multiplier; /** * Creates the {@code SIPrefix}. * - * @param value - * value of prefix + * @param multiplier + * prefix's multiplier * @since 2019-01-14 */ - private SIPrefix(final double value) { - this.value = value; + private SIPrefix(final double multiplier) { + this.multiplier = multiplier; } /** @@ -43,7 +43,7 @@ public enum SIPrefix implements UnitPrefix { * @since 2019-01-14 */ @Override - public final double getValue() { - return this.value; + public final double getMultiplier() { + return this.multiplier; } } |