Class ObjectMapperUtil

java.lang.Object
com.skava.ratingandreviews.helper.ObjectMapperUtil

public final class ObjectMapperUtil extends Object

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 Details

    • convertObjectToString

      public static <T> String convertObjectToString(T object)

      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

      public static <T> T convertStringToObject(String value, Class<T> clazz)

      method Convert string to object.

      Used to convert a string to object

      Type Parameters:
      T - the generic type
      Parameters:
      value - the string value
      clazz - the class type
      Returns:
      the object of class type clazz