Maven module :un.api : api-math :
Class : un.api.unit.Unit
Extends/Implements : un.api.CObject
Subclasses : -

Unit definition.
Reference : http://fr.wikipedia.org/wiki/Unités_dérivées_du_système_international
author  Johann Sorel


Variables : -
Functions : Unit, getUnitName, getPhysicName, getSymbol, getExpression, getBaseUnit, isCompatible, getToBase, getFromBase, toChars, getHash, equals



public void Unit (Chars unitName, Chars physicName, Chars symbol, Chars expression)


Unit full name.
example : hertz
return  Chars, never null
public Chars getUnitName ()


Unit physical name.
example : Frequency
return  Chars, never null
public Chars getPhysicName ()


Unit Symbol.
example : Hz
return  Chars, never null
public Chars getSymbol ()


Textual formula representation of the unit.
example : s^-1
return  Chars, never null
public Chars getExpression ()


Get base unit.
return  Unit using physical quantity mesures.
public Unit getBaseUnit ()


Indicate if conversion from first unit to second is possible.
param  candidate
return
public boolean isCompatible (Unit candidate)


Transformation from this unit to base unit.
return  Transform
public Transform getToBase ()


Transformation from base unit to this unit.
return  Transform
public Transform getFromBase ()

public Chars toChars ()

public int getHash ()

public boolean equals (Object obj)