Package org.tensorics.core.units
Class JScienceUnit
- java.lang.Object
-
- org.tensorics.core.units.JScienceUnit
-
- All Implemented Interfaces:
java.io.Serializable
,Unit
public final class JScienceUnit extends java.lang.Object implements Unit
Encapsulates the implementation of base by the use of units of the jscience library (V 4.3)- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static JScienceUnit
ONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
javax.measure.unit.Unit<?>
getUnit()
int
hashCode()
static JScienceUnit
of(javax.measure.unit.Unit<?> unit)
java.lang.String
toString()
-
-
-
Field Detail
-
ONE
public static final JScienceUnit ONE
-
-
Method Detail
-
of
public static JScienceUnit of(javax.measure.unit.Unit<?> unit)
-
getUnit
public javax.measure.unit.Unit<?> getUnit()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-