diff options
author | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2019-01-26 14:07:29 -0500 |
---|---|---|
committer | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2019-01-26 14:07:29 -0500 |
commit | da01eec8c59477da649767f3ed72c98fe1bbb301 (patch) | |
tree | dca9a0dec1021924b779541c4d0c635cbf207c02 /src/unitConverter/unit/Unit.java | |
parent | 5358e7f04c3d33a17ff84f6c274c521c8f0dd4c9 (diff) |
Added more @since tags, edited some documentation
There is now a @since tag for version as well as date.
Diffstat (limited to 'src/unitConverter/unit/Unit.java')
-rwxr-xr-x | src/unitConverter/unit/Unit.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unitConverter/unit/Unit.java b/src/unitConverter/unit/Unit.java index 9e1375a..54f1423 100755 --- a/src/unitConverter/unit/Unit.java +++ b/src/unitConverter/unit/Unit.java @@ -25,6 +25,7 @@ import unitConverter.dimension.UnitDimension; * * @author Adrien Hopkins * @since 2018-12-22 + * @since v0.1.0 */ public interface Unit { /** @@ -34,6 +35,7 @@ public interface Unit { * unit to test with * @return true if the units are compatible * @since 2019-01-13 + * @since v0.1.0 */ default boolean canConvertTo(final Unit other) { return Objects.equals(this.getBase(), other.getBase()); @@ -53,6 +55,7 @@ public interface Unit { * value expressed in <b>base</b> unit * @return value expressed in <b>this</b> unit * @since 2018-12-22 + * @since v0.1.0 */ double convertFromBase(double value); @@ -70,6 +73,7 @@ public interface Unit { * value expressed in <b>this</b> unit * @return value expressed in <b>base</b> unit * @since 2018-12-22 + * @since v0.1.0 */ double convertToBase(double value); @@ -86,18 +90,21 @@ public interface Unit { * * @return base unit associated with this unit * @since 2018-12-22 + * @since v0.1.0 */ BaseUnit getBase(); /** * @return dimension measured by this unit * @since 2018-12-22 + * @since v0.1.0 */ UnitDimension getDimension(); /** * @return system that this unit is a part of * @since 2018-12-23 + * @since v0.1.0 */ UnitSystem getSystem(); } |