Package alpine.util
Class MapperUtil
- java.lang.Object
-
- alpine.util.MapperUtil
-
public final class MapperUtil extends Object
A collection of useful ObjectMapper methods.- Since:
- 1.0.0
- Author:
- Steve Springett
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TreadAsObjectOf(Class<T> clazz, String value)Reads in a String value and returns the object for which it represents.
-
-
-
Method Detail
-
readAsObjectOf
public static <T> T readAsObjectOf(Class<T> clazz, String value)
Reads in a String value and returns the object for which it represents.- Type Parameters:
T- The expected type to return- Parameters:
clazz- The expected class of the valuevalue- the value to parse- Returns:
- the mapped object
-
-