double transform(Object o) method.
| Modifier and Type | Field and Description |
|---|---|
| private NumberTransformer | defaultTransformer
A default Number Transformer for Numbers and numeric Strings. |
| private Map | map
The internal Map. |
| private static final long | serialVersionUID
Serializable version identifier |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | |
| public void | |
| public boolean | Returns: true|falseClass to check key)Tests if a Class is present in the TransformerMap. |
| public boolean | Returns: true|falseNumberTransformer to check value)Tests if a NumberTransformer is present in the TransformerMap. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public NumberTransformer | Returns: the mapped NumberTransformer or null.The Class of the object key)Returns the Transformer that is mapped to a class if mapping is not present, this returns null. |
| public int | |
| public NumberTransformer | Returns: the replaced transformer if one is presentThe Class key, NumberTransformer The NumberTransformer transformer)Sets a Class to Transformer Mapping in the Map. |
| public NumberTransformer | Returns: the removed transformer if one is present or null if none was present.The Class key)Removes a Class to Transformer Mapping in the Map. |
| public double | Returns: the double value of the Object.the Object to be transformed. o)Implements org. Attempts to transform the Object against the map of NumberTransformers. |
| public Collection | Returns: Set of NumberTransformersReturns the Set of NumberTransformers used as values in the map. |
| defaultTransformer | back to summary |
|---|---|
| private NumberTransformer defaultTransformer A default Number Transformer for Numbers and numeric Strings. | |
| map | back to summary |
|---|---|
| private Map<Class<?>, NumberTransformer> map The internal Map. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serializable version identifier | |
| TransformerMap | back to summary |
|---|---|
| public TransformerMap() Build a map containing only the default transformer. | |
| classes | back to summary |
|---|---|
| public Set Returns the Set of Classes used as keys in the map. | |
| clear | back to summary |
|---|---|
| public void clear() Clears all the Class to Transformer mappings. | |
| containsClass | back to summary |
|---|---|
| public boolean containsClass(Class<?> key) Tests if a Class is present in the TransformerMap.
| |
| containsTransformer | back to summary |
|---|---|
| public boolean containsTransformer(NumberTransformer value) Tests if a NumberTransformer is present in the TransformerMap.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getTransformer | back to summary |
|---|---|
| public NumberTransformer getTransformer(Class<?> key) Returns the Transformer that is mapped to a class if mapping is not present, this returns null.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| putTransformer | back to summary |
|---|---|
| public NumberTransformer putTransformer(Class<?> key, NumberTransformer transformer) Sets a Class to Transformer Mapping in the Map. If the Class is already present, this overwrites that mapping.
| |
| removeTransformer | back to summary |
|---|---|
| public NumberTransformer removeTransformer(Class<?> key) Removes a Class to Transformer Mapping in the Map.
| |
| transform | back to summary |
|---|---|
| public double transform(Object o) throws MathIllegalArgumentException Implements org. Attempts to transform the Object against the map of NumberTransformers. Otherwise it returns Double.NaN.
| |
| transformers | back to summary |
|---|---|
| public Collection Returns the Set of NumberTransformers used as values in the map.
| |