Package org.apache.commons.math.util
Class DefaultTransformer
- java.lang.Object
 - 
- org.apache.commons.math.util.DefaultTransformer
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable,NumberTransformer
public class DefaultTransformer extends java.lang.Object implements NumberTransformer, java.io.Serializable
A Default NumberTransformer for java.lang.Numbers and Numeric Strings. This provides some simple conversion capabilities to turn any java.lang.Number into a primitive double or to turn a String representation of a Number into a double.- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description DefaultTransformer() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()doubletransform(java.lang.Object o)Implementing this interface provides a facility to transform from Object to Double. 
 - 
 
- 
- 
Method Detail
- 
transform
public double transform(java.lang.Object o) throws MathExceptionDescription copied from interface:NumberTransformerImplementing this interface provides a facility to transform from Object to Double.- Specified by:
 transformin interfaceNumberTransformer- Parameters:
 o- the object that gets transformed.- Returns:
 - a double primitive representation of the Object o.
 - Throws:
 MathException- if it cannot successfully be transformed.- See Also:
 - Commons Collections Transformer
 
 
- 
equals
public boolean equals(java.lang.Object other)
- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
 - 
 
 -