Package io.a2a.util

Class Utils

java.lang.Object
io.a2a.util.Utils

public class Utils extends Object
  • 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

      public static <T extends Throwable> void rethrow(Throwable t) throws T
      Throws:
      T extends Throwable