T - the input type.public final class IntegerValueTransformer<T> extends Object implements Transformer<T,Integer>
Integer.valueOf(String) on the string representation (the result of
toString()) of the input object.
Inspiration:
StringValueTransformer
| Modifier and Type | Method and Description |
|---|---|
static <T> Transformer<T,Integer> |
integerValueTransformer()
Factory returning the singleton instance.
|
Integer |
transform(T input)
Transforms the input to result by calling
Integer.valueOf(String)
on the result of input.toString(). |
public static <T> Transformer<T,Integer> integerValueTransformer()
T - the input type.public Integer transform(T input)
Integer.valueOf(String)
on the result of input.toString().transform in interface Transformer<T,Integer>input - the input object to transform.Copyright © 2015–2016 Hobrasoft s.r.o.. All rights reserved.