protected static final class TimeScaleUnit.MyConverter extends ConverterImpl
Modifier | Constructor and Description |
---|---|
protected |
MyConverter(TimeScaleUnit 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, create
protected MyConverter(TimeScaleUnit fromUnit, Unit toUnit) throws ConversionException
ConversionException
public double convert(double amount)
Converter
amount
- The numeric value to convert.public float[] convert(float[] input, float[] output)
Converter
input
- The numeric values to convert.output
- The converted numeric values. May be
same array as input
.output
.public double[] convert(double[] input, double[] output)
Converter
input
- The numeric values to convert.output
- The converted numeric values. May be
same array as input
.output
.