Package org.apache.commons.math4.util
Interface NumberTransformer
- All Known Implementing Classes:
DefaultTransformer,TransformerMap
public interface NumberTransformer
Subclasses implementing this interface can transform Objects to doubles.
No longer extends Serializable since 2.0
-
Method Summary
Modifier and Type Method Description doubletransform(java.lang.Object o)Implementing this interface provides a facility to transform from Object to Double.
-
Method Details
-
transform
Implementing this interface provides a facility to transform from Object to Double.- Parameters:
o- the Object to be transformed.- Returns:
- the double value of the Object.
- Throws:
MathIllegalArgumentException- if the Object can not be transformed into a Double.
-