Package io.a2a.util
Class Utils
java.lang.Object
io.a2a.util.Utils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TdefaultIfNull(T value, T defaultValue) static <T extends Throwable>
voidstatic <T> TunmarshalFrom(String data, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
-
Field Details
-
OBJECT_MAPPER
public static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
unmarshalFrom
public static <T> T unmarshalFrom(String data, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
defaultIfNull
public static <T> T defaultIfNull(T value, T defaultValue) -
rethrow
- Throws:
T extends Throwable
-