|
JADE v6.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.units.Converter
javax.units.MultiplyConverter
This class represents a multiply converter. A multiply converter multiplies numeric values by a constant scale factor.
Instances of this class are immutable.
| Field Summary |
| Fields inherited from class javax.units.Converter |
IDENTITY |
| Constructor Summary | |
MultiplyConverter(double factor)
Creates a multiply converter with the specified scale factor. |
|
| Method Summary | |
Converter |
concatenate(Converter converter)
Concatenates this converter with another converter. |
double |
convert(double amount)
Converts a double value. |
double |
derivative(double x)
Returns this converter derivative for the specified x value. |
Converter |
inverse()
Returns the inverse of this converter. |
boolean |
isLinear()
Indicates if this converter is linear. |
| Methods inherited from class javax.units.Converter |
equals, hashCode |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MultiplyConverter(double factor)
factor - the scale factor.| Method Detail |
public Converter inverse()
Converterx is a valid
value, then x == inverse().convert(convert(x)) to within
the accuracy of computer arithmetic.
public double convert(double amount)
Converter
amount - the numeric value to convert.
public double derivative(double x)
Converterx value. For linear converters, this method returns
a constant (the linear factor) for all x values.
derivative in class Converterx - the value for which the derivative is calculated.
public boolean isLinear()
Converterconvert(u + v) == convert(u) + convert(v) and
convert(r * u) == r * convert(u).
true if this converter is linear;
false otherwise.public Converter concatenate(Converter converter)
Converter
concatenate in class Converterconverter - the other converter.
|
JADE v6.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||