Class ObjectMapperUtil
java.lang.Object
com.skava.ratingandreviews.helper.ObjectMapperUtil
Class ObjectMapperUtil
This Class is used to read a json file
This is object mapper utility class.
Used to convert objects- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> String
convertObjectToString
(T object) method Convert object to string.static <T> T
convertStringToObject
(String value, Class<T> clazz) method Convert string to object.
-
Method Details
-
convertObjectToString
method Convert object to string.
Used to convert a object to string
- Type Parameters:
T
- the generic type- Parameters:
object
- the object- Returns:
- the string
-
convertStringToObject
method Convert string to object.
Used to convert a string to object
- Type Parameters:
T
- the generic type- Parameters:
value
- the string valueclazz
- the class type- Returns:
- the object of class type clazz
-