Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Commit

Permalink
153: Release 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
keilw committed Apr 4, 2017
1 parent 612e222 commit d487719
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<name>Units of Measurement project</name>
<url>http://unitsofmeasurement.github.io</url>
</organization>
<version>1.0.5-SNAPSHOT</version>
<version>1.0.5</version>
<packaging>bundle</packaging>
<parent>
<groupId>tec.uom</groupId>
Expand Down Expand Up @@ -426,4 +426,8 @@
<url>https://oss.jfrog.org/artifactory/oss-snapshot-local</url>
</snapshotRepository>
</distributionManagement>
<ciManagement>
<system>CircleCI</system>
<url>https://circleci.com/gh/unitsofmeasurement/uom-se</url>
</ciManagement>
</project>
20 changes: 11 additions & 9 deletions src/main/java/tec/uom/se/AbstractUnit.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@
* @see <a href= "http://en.wikipedia.org/wiki/International_System_of_Units">Wikipedia: International System of Units</a>
* @author <a href="mailto:[email protected]">Jean-Marie Dautelle</a>
* @author <a href="mailto:[email protected]">Werner Keil</a>
* @version 1.0.4, March 17, 2017
* @version 1.0.5, April 4, 2017
* @since 1.0
*/
public abstract class AbstractUnit<Q extends Quantity<Q>> implements Unit<Q>, Comparable<Unit<Q>>, Serializable {

/**
*
*/
*
*/
private static final long serialVersionUID = -4344589505537030204L;

/**
Expand Down Expand Up @@ -126,8 +126,8 @@ public boolean isSystemUnit() {
/**
* Returns the unscaled {@link SI} unit from which this unit is derived.
*
* They SI unit can be be used to identify a quantity given the unit. For example:[code] static boolean isAngularVelocity(AbstractUnit<?> unit) {
* return unit.toSI().equals(RADIAN.divide(SECOND)); } assert(REVOLUTION.divide(MINUTE).isAngularVelocity()); // Returns true. [/code]
* The SI unit can be be used to identify a quantity given the unit. For example:<code> static boolean isAngularVelocity(AbstractUnit<?> unit) {
* return unit.toSystemUnit().equals(RADIAN.divide(SECOND)); } assert(REVOLUTION.divide(MINUTE).isAngularVelocity()); // Returns true. </code>
*
* @return the unscaled metric unit from which this unit is derived.
*/
Expand All @@ -143,8 +143,9 @@ public boolean isSystemUnit() {

/**
* Annotates the specified unit. Annotation does not change the unit semantic. Annotations are often written between curly braces behind units. For
* example: [code] AbstractUnit<Volume> PERCENT_VOL = Units.PERCENT.annotate("vol"); // "%{vol}" AbstractUnit<Mass> KG_TOTAL =
* Units.KILOGRAM.annotate("total"); // "kg{total}" AbstractUnit<Dimensionless> RED_BLOOD_CELLS = Units.ONE.annotate("RBC"); // "{RBC}" [/code]
* example:
* <code> AbstractUnit<Volume> PERCENT_VOL = Units.PERCENT.annotate("vol"); // "%{vol}" AbstractUnit<Mass> KG_TOTAL =
* Units.KILOGRAM.annotate("total"); // "kg{total}" AbstractUnit<Dimensionless> RED_BLOOD_CELLS = Units.ONE.annotate("RBC"); // "{RBC}" </code>
*
* Note: Annotation of system units are not considered themselves as system units.
*
Expand Down Expand Up @@ -195,8 +196,9 @@ public String toString() {

/**
* Returns the system unit (unscaled SI unit) from which this unit is derived. They can be be used to identify a quantity given the unit. For
* example:[code] static boolean isAngularVelocity(AbstractUnit<?> unit) { return unit.getSystemUnit().equals(RADIAN.divide(SECOND)); }
* assert(REVOLUTION.divide(MINUTE).isAngularVelocity()); // Returns true. [/code]
* example:<br>
* <code> static boolean isAngularVelocity(AbstractUnit<?> unit) {<br>&nbsp;&nbsp;return unit.getSystemUnit().equals(RADIAN.divide(SECOND));<br>}
* <br>assert(REVOLUTION.divide(MINUTE).isAngularVelocity()); // Returns true. </code>
*
* @return the unscaled metric unit from which this unit is derived.
*/
Expand Down

0 comments on commit d487719

Please sign in to comment.