ProductUnit class

Units formed by the product of rational powers of existing units.

Inheritance

Constructors

ProductUnit(Iterable<RationalPower<Unit>> elements)
factory

Properties

dimension Dimension
The dimension of this unit.
no setterinherited
elements List<RationalPower<Unit>>
The units composing this product unit.
no setter
hashCode int
The hash code for this object.
no setteroverride
isStandardUnit bool
Indicates if this unit is a standard unit.
no setterinherited
quantity Quantity
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
standardUnit Unit
//////////////////////////////////////////////// //////////////////////////////////////////////// The BaseUnit base unit, AlternateUnit alternate unit or product of base units and alternate units this unit is derived from.
no setteroverride

Methods

divide(Unit that) Unit
The quotient of this unit with the one specified.
inherited
getConverterTo(Unit that) UnitConverter
Returns a converter of numeric values from this unit to another unit.
inherited
inverse() Unit
The inverse of this unit.
inherited
isCompatible(Unit that) bool
Indicates if this unit is compatible with the unit specified.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
plus(num offset) Unit
The result of adding an offset to this unit.
inherited
pow(RationalNumber pow) Unit
inherited
scaled(num factor, [num divisor = 1]) Unit
The result of multiplying this unit by a factor.
inherited
simplify() Unit
times(Unit that) Unit
The product of this unit with the one specified.
inherited
toStandardUnit() UnitConverter
Returns the converter from this unit to its standard unit.
override
toString() String
A string representation of this object.
inherited
transform(UnitConverter operation) Unit
Returns the unit derived from this unit using the specified converter.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override