Class ExpConverter

java.lang.Object
tech.units.indriya.AbstractConverter
tech.units.indriya.function.ExpConverter
All Implemented Interfaces:
Serializable, Comparable<javax.measure.UnitConverter>, javax.measure.UnitConverter, tech.uom.lib.common.function.ValueSupplier<String>

public final class ExpConverter extends AbstractConverter implements tech.uom.lib.common.function.ValueSupplier<String>

This class represents a exponential converter of limited precision. Such converter is used to create inverse of logarithmic unit.

This class is package private, instances are created using the AbstractConverter.inverse() method.

Since:
1.0
Version:
1.3, April 26, 2018
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • base

      private final double base
      Holds the logarithmic base.
    • logOfBase

      private final double logOfBase
      Holds the natural logarithm of the base.
  • Constructor Details

    • ExpConverter

      public ExpConverter(double base)
      Creates a logarithmic converter having the specified base.
      Parameters:
      base - the logarithmic base (e.g. Math.E for the Natural Logarithm).
  • Method Details