org.apache.commons.math.util
Interface NumberTransformer
- All Known Implementing Classes:
- DefaultTransformer, TransformerMap
- public interface NumberTransformer
Subclasses implementing this interface can transform Objects to doubles.
- Version:
- $Revision: 155427 $ $Date: 2005-02-26 06:11:52 -0700 (Sat, 26 Feb 2005) $
Method Summary |
double |
transform(Object o)
Implementing this interface provides a facility to transform
from Object to Double. |
transform
public double transform(Object o)
throws MathException
- 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:
MathException
- if the Object can not be transformed into a Double.
Copyright © 2003-2007 The Apache Software Foundation. All Rights Reserved.