java.lang.Object
com.adventure.deserializers.DeserializingUtility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
fromNodeToObject
(com.fasterxml.jackson.databind.JsonNode objectNode, Class<T> tClass) Given the class name the JsonNode it uses the default deserializer to deserialize the JsonNode using the given class
-
Constructor Details
-
DeserializingUtility
public DeserializingUtility()
-
-
Method Details
-
fromNodeToObject
public static <T> T fromNodeToObject(com.fasterxml.jackson.databind.JsonNode objectNode, Class<T> tClass) throws com.fasterxml.jackson.core.JsonProcessingException Given the class name the JsonNode it uses the default deserializer to deserialize the JsonNode using the given class- Type Parameters:
T
- the type to use- Parameters:
objectNode
- JsonNode to usetClass
- Class type to use- Returns:
- A deserialized object of type tClass
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-