Package ucar.units

Class UnitImpl.MyConverter

  • All Implemented Interfaces:
    Converter
    Enclosing class:
    UnitImpl

    protected static class UnitImpl.MyConverter
    extends ConverterImpl
    Provides support for converting numeric values from this unit to another unit.
    • 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.