Class NotificationStoreUtils


  • public class NotificationStoreUtils
    extends java.lang.Object
    NotificationStoreUtils
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.fasterxml.jackson.databind.ObjectMapper getMapper()
      ObjectMapper
      static <T> T jsonToObject​(java.lang.String jsonStr, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
      Converts json String response to the desired subclass instance.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getMapper

        public static com.fasterxml.jackson.databind.ObjectMapper getMapper()
        ObjectMapper
      • jsonToObject

        public static <T> T jsonToObject​(java.lang.String jsonStr,
                                         com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
                                  throws com.fasterxml.jackson.core.JsonProcessingException
        Converts json String response to the desired subclass instance.
        Parameters:
        jsonStr - the json string value
        typeReference -
        Returns:
        the desired subclass instance
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
        com.fasterxml.jackson.databind.JsonMappingException