public class NumberTransformer extends Object implements FunctionTransformer, Serializable
NumberUtils.createNumber(String)
decide the typeModifier and Type | Field and Description |
---|---|
static Pattern |
NUMBER_PATTERN |
Constructor and Description |
---|
NumberTransformer() |
Modifier and Type | Method and Description |
---|---|
Class<? extends Number> |
getNumberType()
Optional : If provided will force the result to conform to the given DataType
|
static Number |
getSpecificTypeNumber(Number input,
Class<? extends Number> numberType) |
void |
setNumberType(Class<? extends Number> numberType)
Optional : If provided will force the result to conform to the given DataType
|
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public static final Pattern NUMBER_PATTERN
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public static Number getSpecificTypeNumber(Number input, Class<? extends Number> numberType)
public Class<? extends Number> getNumberType()
Copyright © 2018. All rights reserved.