ucar.units
Class TimeScaleUnit.MyConverter

java.lang.Object
  extended by ucar.units.ConverterImpl
      extended by ucar.units.TimeScaleUnit.MyConverter
All Implemented Interfaces:
Converter
Enclosing class:
TimeScaleUnit

protected static final class TimeScaleUnit.MyConverter
extends ConverterImpl

Provides support for Converter-s.


Constructor Summary
protected TimeScaleUnit.MyConverter(TimeScaleUnit fromUnit, Unit toUnit)
           
 
Method Summary
 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.
 
Methods inherited from class ucar.units.ConverterImpl
convert, convert, convert, create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeScaleUnit.MyConverter

protected TimeScaleUnit.MyConverter(TimeScaleUnit fromUnit,
                                    Unit toUnit)
                             throws ConversionException
Throws:
ConversionException
Method Detail

convert

public double convert(double amount)
Description copied from interface: Converter
Converts a numeric value.

Parameters:
amount - The numeric value to convert.
Returns:
The converted numeric value.

convert

public float[] convert(float[] input,
                       float[] output)
Description copied from interface: Converter
Converts an array of numeric values.

Parameters:
input - The numeric values to convert.
output - The converted numeric values. May be same array as input.
Returns:
output.

convert

public double[] convert(double[] input,
                        double[] output)
Description copied from interface: Converter
Converts an array of numeric values.

Parameters:
input - The numeric values to convert.
output - The converted numeric values. May be same array as input.
Returns:
output.


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.