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.UnitConverter
The singleton instance.private static final long
For cross-version compatibility. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
convert
(double value) Applies the unit conversion on the given value.double
derivative
(double value) Returns the derivative of this conversion at the given value.boolean
Compares this converter with the given object for equality.int
hashCode()
Returns a hash code value for this unit converter.javax.measure.UnitConverter
inverse()
Returns the inverse of this converter.private Object
Returns 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:
derivative
in 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.
-