Package ucar.units
Interface DerivedUnit
-
- All Superinterfaces:
Unit
- All Known Implementing Classes:
BaseUnit,DerivedUnitImpl,UnknownUnit
public interface DerivedUnit extends Unit
Interface for derived units.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UnitDimensiongetDimension()Returns the unit dimension of this derived unit.QuantityDimensiongetQuantityDimension()Return the quantity dimension of this derived unit.booleanisReciprocalOf(DerivedUnit that)Indicates if this derived unit is the reciprocal of another derived unit (e.g.-
Methods inherited from interface ucar.units.Unit
clone, convertTo, convertTo, convertTo, convertTo, convertTo, convertTo, divideBy, divideInto, equals, getCanonicalString, getConverterTo, getDerivedUnit, getName, getPlural, getSymbol, getUnitName, isCompatible, isDimensionless, log, makeLabel, multiplyBy, multiplyBy, raiseTo, shiftTo, shiftTo, toString
-
-
-
-
Method Detail
-
isReciprocalOf
boolean isReciprocalOf(DerivedUnit that)
Indicates if this derived unit is the reciprocal of another derived unit (e.g. "second" and "hertz").- Parameters:
that- The other, derived unit.
-
getDimension
UnitDimension getDimension()
Returns the unit dimension of this derived unit. For example, the unit "newton" has the unit dimension "kg.m.s-2".- Returns:
- The unit dimension of this derived unit.
-
getQuantityDimension
QuantityDimension getQuantityDimension()
Return the quantity dimension of this derived unit. For example, the unit "newton" has the quantity dimension "M.L.t-2").- Returns:
- The quantity dimension of this derived unit.
-
-