Package co.elastic.clients.util
Class Union2.JsonpParser<A,B>
java.lang.Object
co.elastic.clients.json.JsonpDeserializer<Union2<A,B>>
co.elastic.clients.util.Union2.JsonpParser<A,B>
public static class Union2.JsonpParser<A,B> extends JsonpDeserializer<Union2<A,B>>
-
Constructor Summary
Constructors Constructor Description JsonpParser(JsonpDeserializer<A> parserA, JsonpDeserializer<B> parserB)
-
Method Summary
Modifier and Type Method Description Union2<A,B>
deserialize(jakarta.json.stream.JsonParser parser, JsonpMapper mapper, jakarta.json.stream.JsonParser.Event event)
Parse a value.Methods inherited from class co.elastic.clients.json.JsonpDeserializer
acceptedEvents, accepts, allAcceptedEvents, arrayDeserializer, booleanDeserializer, deserialize, doubleDeserializer, emptyObject, ensureAccepts, fixedValue, floatDeserializer, integerDeserializer, jsonValueDeserializer, lazy, lazy, lazy, lazyInstance, longDeserializer, numberDeserializer, of, of, of, stringDeserializer, stringMapDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JsonpParser
-
-
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 withensureAccepts(parser, event)
to ensure correctness of the starting state.- Specified by:
deserialize
in classJsonpDeserializer<Union2<A,B>>
- Parameters:
parser
- the json parsermapper
- the jsonp mapperevent
- the current state ofparser
, which must be part ofJsonpDeserializer.acceptedEvents
- Returns:
- the parsed value
-