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
FieldsModifier and TypeFieldDescriptionprotected BigDecimalprotected final Stringstatic final Unit<Dimensionless>protected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondivide(double divisor) Unit<?>getConverterTo(Unit<Q> that) getConverterToAny(Unit<?> that) doublegetName()Returns the converter from this unit to its unscaledSystem Unitunit.Unit<?>inverse()booleanisCompatible(Unit<?> that) booleanisEquivalentTo(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:
getConverterToin interfaceUnit<Q extends Quantity<Q>>- Throws:
UnconvertibleException
-
getConverterToAny
public UnitConverter getConverterToAny(Unit<?> that) throws IncommensurableException, UnconvertibleException - Specified by:
getConverterToAnyin interfaceUnit<Q extends Quantity<Q>>- Throws:
IncommensurableExceptionUnconvertibleException
-
getDimension
- Specified by:
getDimensionin interfaceUnit<Q extends Quantity<Q>>
-
getName
-
getBaseUnits
- Specified by:
getBaseUnitsin interfaceUnit<Q extends Quantity<Q>>
-
getSymbol
-
inverse
-
isCompatible
- Specified by:
isCompatiblein interfaceUnit<Q extends Quantity<Q>>
-
isEquivalentTo
- Specified by:
isEquivalentToin interfaceUnit<Q extends Quantity<Q>>
-
multiply
-
multiply
-
pow
-
root
-
getSystemUnit
- Specified by:
getSystemUnitin interfaceUnit<Q extends Quantity<Q>>
-
getSystemConverter
Returns the converter from this unit to its unscaledSystem Unitunit.- Returns:
getConverterTo(this.toSystemUnit())- Throws:
UnsupportedOperationException- See Also:
-
transform
-
prefix
-
getMultFactor
-
toString
-
shift
-
multiply
-
divide
-