Top Description Methods
org.apache.commons.math3.util

public Interface NumberTransformer

Known Direct Implementers
org.apache.commons.math3.util.TransformerMap, org.apache.commons.math3.util.DefaultTransformer
Imports
org.apache.commons.math3.exception.MathIllegalArgumentException

Subclasses implementing this interface can transform Objects to doubles. No longer extends Serializable since 2.0

Method Summary

Modifier and TypeMethod and Description
public double

Returns:

the double value of the Object.
transform
(Object
the Object to be transformed.
o
)

Implementing this interface provides a facility to transform from Object to Double.

Method Detail

transformback to summary
public double transform(Object o) throws MathIllegalArgumentException

Implementing this interface provides a facility to transform from Object to Double.

Parameters
o:Object

the Object to be transformed.

Returns:double

the double value of the Object.

Exceptions
MathIllegalArgumentException:
if the Object can not be transformed into a Double.