Class PowerOf10.Logarithm

java.lang.Object
org.apache.sis.measure.AbstractConverter
org.apache.sis.measure.PowerOf10.Logarithm
All Implemented Interfaces:
Serializable, javax.measure.UnitConverter
Enclosing class:
PowerOf10

private static final class PowerOf10.Logarithm extends AbstractConverter
Inverse of PowerOf10.
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
    • INSTANCE

      static final javax.measure.UnitConverter INSTANCE
      The singleton instance.
  • Constructor Details

    • Logarithm

      private Logarithm()
      Creates the singleton instance.
  • Method Details

    • readResolve

      private Object readResolve() throws ObjectStreamException
      Returns the singleton instance on deserialization.
      Throws:
      ObjectStreamException
    • inverse

      public javax.measure.UnitConverter inverse()
      Returns the inverse of this converter.
    • convert

      public double convert(double value)
      Applies the unit conversion on the given value.
    • derivative

      public double derivative(double value)
      Returns the derivative of this conversion at the given value.
      Specified by:
      derivative in class AbstractConverter
      Parameters:
      value - the point at which to compute the derivative. Ignored (can be Double.NaN) if the conversion is linear.
    • hashCode

      public int hashCode()
      Returns a hash code value for this unit converter.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Compares this converter with the given object for equality.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Returns a string representation of this converter for debugging purpose.
      Overrides:
      toString in class Object