Class Union2.JsonpParser<A,​B>

java.lang.Object
co.elastic.clients.json.JsonpDeserializer<Union2<A,​B>>
co.elastic.clients.util.Union2.JsonpParser<A,​B>
Enclosing class:
Union2<A,​B>

public static class Union2.JsonpParser<A,​B>
extends JsonpDeserializer<Union2<A,​B>>
  • Constructor Details

  • Method Details

    • deserialize

      public Union2<A,​B> deserialize​(jakarta.json.stream.JsonParser parser, JsonpMapper mapper, jakarta.json.stream.JsonParser.Event event)
      Description copied from class: JsonpDeserializer
      Parse a value. The value starts at the current state in the json stream. This method will usually start with ensureAccepts(parser, event) to ensure correctness of the starting state.
      Specified by:
      deserialize in class JsonpDeserializer<Union2<A,​B>>
      Parameters:
      parser - the json parser
      mapper - the jsonp mapper
      event - the current state of parser, which must be part of JsonpDeserializer.acceptedEvents
      Returns:
      the parsed value