protected static class UnitImpl.MyConverter extends ConverterImpl
| Modifier | Constructor and Description |
|---|---|
protected |
MyConverter(Unit fromUnit,
Unit toUnit) |
| Modifier and Type | Method and Description |
|---|---|
double |
convert(double amount)
Converts a numeric value.
|
double[] |
convert(double[] input,
double[] output)
Converts an array of numeric values.
|
float[] |
convert(float[] input,
float[] output)
Converts an array of numeric values.
|
convert, convert, convert, createprotected MyConverter(Unit fromUnit, Unit toUnit) throws ConversionException
ConversionExceptionpublic double convert(double amount)
Converteramount - The numeric value to convert.public float[] convert(float[] input,
float[] output)
Converterinput - The numeric values to convert.output - The converted numeric values. May be
same array as input.output.public double[] convert(double[] input,
double[] output)
Converterinput - The numeric values to convert.output - The converted numeric values. May be
same array as input.output.