Package alpine.server.util
Class MapperUtil
java.lang.Object
alpine.server.util.MapperUtil
A collection of useful ObjectMapper methods.
- Since:
- 1.0.0
- Author:
- Steve Springett
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TreadAsObjectOf(Class<T> clazz, String value) Reads in a String value and returns the object for which it represents.
-
Method Details
-
readAsObjectOf
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
-