Package com.independentsoft.office
Class Unit
java.lang.Object
com.independentsoft.office.Unit
The Class Unit.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Unit
public Unit()Instantiates a new unit. -
Unit
Instantiates a new unit.- Parameters:
val- the valtype- the type
-
Unit
Instantiates a new unit.- Parameters:
value- the value
-
-
Method Details
-
toEnglishMetricUnit
public long toEnglishMetricUnit()To english metric unit.- Returns:
- the long
-
clone
-
toString
-
getValue
public double getValue()Gets the value.- Returns:
- the value
-
setValue
public void setValue(double value)Sets the value.- Parameters:
value- the new value
-
getType
Gets the type.- Returns:
- the type
-
setType
Sets the type.- Parameters:
type- the new type
-