org.apache.commons.math.util
Interface NumberTransformer

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DefaultTransformer, TransformerMap

public interface NumberTransformer
extends java.io.Serializable

Subclasses implementing this interface can transform Objects to doubles.

Version:
$Revision: 630595 $ $Date: 2008-02-23 22:56:08 -0700 (Sat, 23 Feb 2008) $

Method Summary
 double transform(java.lang.Object o)
          Implementing this interface provides a facility to transform from Object to Double.
 

Method Detail

transform

double transform(java.lang.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-2008 The Apache Software Foundation. All Rights Reserved.