Package org.apache.sis.measure
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
Inverse of
PowerOf10.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final javax.measure.UnitConverterThe singleton instance.private static final longFor cross-version compatibility. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleconvert(double value) Applies the unit conversion on the given value.doublederivative(double value) Returns the derivative of this conversion at the given value.booleanCompares this converter with the given object for equality.inthashCode()Returns a hash code value for this unit converter.javax.measure.UnitConverterinverse()Returns the inverse of this converter.private ObjectReturns the singleton instance on deserialization.toString()Returns a string representation of this converter for debugging purpose.Methods inherited from class org.apache.sis.measure.AbstractConverter
coefficients, concatenate, convert, derivative, doubleValue, epsilonEquals, getConversionSteps, isIdentity, isLinear, scale
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
INSTANCE
static final javax.measure.UnitConverter INSTANCEThe singleton instance.
-
-
Constructor Details
-
Logarithm
private Logarithm()Creates the singleton instance.
-
-
Method Details
-
readResolve
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:
derivativein classAbstractConverter- Parameters:
value- the point at which to compute the derivative. Ignored (can beDouble.NaN) if the conversion is linear.
-
hashCode
public int hashCode()Returns a hash code value for this unit converter. -
equals
Compares this converter with the given object for equality. -
toString
Returns a string representation of this converter for debugging purpose.
-