Package javax.measure.test
Class TestUnit<Q extends Quantity<Q>>
Object
TestUnit<Q>
- All Implemented Interfaces:
Unit<Q>
- Direct Known Subclasses:
AreaUnit
,BaseUnit
,SpeedUnit
,TemperatureUnit
,VolumeUnit
- Author:
- Werner Keil
-
Field Summary
Modifier and TypeFieldDescriptionprotected BigDecimal
protected final String
static final Unit<Dimensionless>
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondivide
(double divisor) Unit<?>
getConverterTo
(Unit<Q> that) getConverterToAny
(Unit<?> that) double
getName()
Returns the converter from this unit to its unscaledSystem Unit
unit.Unit<?>
inverse()
boolean
isCompatible
(Unit<?> that) boolean
isEquivalentTo
(Unit<Q> that) multiply
(double factor) Unit<?>
Unit<?>
pow
(int n) Unit<?>
root
(int n) shift
(double offset) toString()
transform
(UnitConverter operation)
-
Field Details
-
ONE
-
symbol
-
name
-
multFactor
-
-
Constructor Details
-
TestUnit
protected TestUnit() -
TestUnit
-
TestUnit
-
-
Method Details
-
shift
-
alternate
-
asType
-
divide
-
divide
-
getConverterTo
- Specified by:
getConverterTo
in interfaceUnit<Q extends Quantity<Q>>
- Throws:
UnconvertibleException
-
getConverterToAny
public UnitConverter getConverterToAny(Unit<?> that) throws IncommensurableException, UnconvertibleException - Specified by:
getConverterToAny
in interfaceUnit<Q extends Quantity<Q>>
- Throws:
IncommensurableException
UnconvertibleException
-
getDimension
- Specified by:
getDimension
in interfaceUnit<Q extends Quantity<Q>>
-
getName
-
getBaseUnits
- Specified by:
getBaseUnits
in interfaceUnit<Q extends Quantity<Q>>
-
getSymbol
-
inverse
-
isCompatible
- Specified by:
isCompatible
in interfaceUnit<Q extends Quantity<Q>>
-
isEquivalentTo
- Specified by:
isEquivalentTo
in interfaceUnit<Q extends Quantity<Q>>
-
multiply
-
multiply
-
pow
-
root
-
getSystemUnit
- Specified by:
getSystemUnit
in interfaceUnit<Q extends Quantity<Q>>
-
getSystemConverter
Returns the converter from this unit to its unscaledSystem Unit
unit.- Returns:
getConverterTo(this.toSystemUnit())
- Throws:
UnsupportedOperationException
- See Also:
-
transform
-
prefix
-
getMultFactor
-
toString
-
shift
-
multiply
-
divide
-