This class represents a converter multiplying numeric values by a constant
scaling factor represented by the Number type.
| Modifier and Type | Method and Description |
|---|---|
| public default Number | Returns: the scale factor.Implements tech. Returns the scale factor of this converter. |
| public static MultiplyConverter | |
| public default boolean | isLinear()
Implements javax. Indicates whether this converter represents a (one-dimensional) linear transformation, that is a linear map (wikipedia) from a one-dimensional vector space (a scalar) to a one-dimensional vector space. |
| public static MultiplyConverter | |
| public static MultiplyConverter | Returns: a new MultiplyConverter.the double factor. factor)Creates a MultiplyConverter with the specified constant factor. |
| public static MultiplyConverter | Returns: a new MultiplyConverter.the base. base, int the exponent. exponent)Creates a MultiplyConverter with the specified base and exponent. |
| public static MultiplyConverter | Returns: a new MultiplyConverter.the exponent for the factor π^exponent. exponent)Creates a MultiplyConverter with the specified exponent of Pi. |
| public static MultiplyConverter | |
| public static MultiplyConverter | |
| public static MultiplyConverter | ofRational(long dividend, long divisor)
Creates a MultiplyConverter with the specified rational factor made up of
|
| public static MultiplyConverter | ofRational(BigInteger dividend, BigInteger divisor)
Creates a MultiplyConverter with the specified rational factor made up of
|
| public static MultiplyConverter | ofTenExponent(int
the exponent for the factor 10^exponent. exponent)Creates a MultiplyConverter with base 10 and an exponent. |
| getFactor | back to summary |
|---|---|
| public default Number getFactor() Implements tech. Returns the scale factor of this converter.
| |
| identity | back to summary |
|---|---|
| public static MultiplyConverter identity() Returns a MultiplyConverter that acts as a 'pass-through'. | |
| isLinear | back to summary |
|---|---|
| public default boolean isLinear() Implements javax. Doc from javax. Indicates whether this converter represents a (one-dimensional) linear transformation, that is a linear map (wikipedia) from a one-dimensional vector space (a scalar) to a one-dimensional vector space. Typically from 'R' to 'R', with 'R' the real numbers. Given such a 'linear' converter 'A', let 'u', 'v' and 'r' be arbitrary numbers, then the following must hold by definition:
Given a second 'linear' converter 'B', commutativity of composition follows by above definition:
A(B(u)) == B(A(u)), meaning
for 'A' and 'B' the order of their composition does not matter. Expressed as Java code:
UnitConverter#concatenate(UnitConverter).
| |
| of | back to summary |
|---|---|
| public static MultiplyConverter of(Number factor) Creates a MultiplyConverter with the specified constant factor. | |
| of | back to summary |
|---|---|
| public static MultiplyConverter of(double factor) Creates a MultiplyConverter with the specified constant factor.
| |
| ofExponent | back to summary |
|---|---|
| public static MultiplyConverter ofExponent(int base, int exponent) Creates a MultiplyConverter with the specified base and exponent.
| |
| ofPiExponent | back to summary |
|---|---|
| public static MultiplyConverter ofPiExponent(int exponent) Creates a MultiplyConverter with the specified exponent of Pi.
| |
| ofPrefix | back to summary |
|---|---|
| public static MultiplyConverter ofPrefix(Prefix prefix) Creates a MultiplyConverter with the specified Prefix.
| |
| ofRational | back to summary |
|---|---|
| public static MultiplyConverter ofRational(RationalNumber factor) | |
| ofRational | back to summary |
|---|---|
| public static MultiplyConverter ofRational(long dividend, long divisor) Creates a MultiplyConverter with the specified rational factor made up of
| |
| ofRational | back to summary |
|---|---|
| public static MultiplyConverter ofRational(BigInteger dividend, BigInteger divisor) Creates a MultiplyConverter with the specified rational factor made up of
| |
| ofTenExponent | back to summary |
|---|---|
| public static MultiplyConverter ofTenExponent(int exponent) Creates a MultiplyConverter with base 10 and an exponent.
| |