Package co.elastic.clients.json
Class ExternallyTaggedUnion.TypedKeysDeserializer<Union extends TaggedUnion<?,?>>
java.lang.Object
co.elastic.clients.json.JsonpDeserializerBase<Map<String,Union>>
co.elastic.clients.json.ExternallyTaggedUnion.TypedKeysDeserializer<Union>
- All Implemented Interfaces:
JsonpDeserializer<Map<String,
Union>>
- Enclosing class:
- ExternallyTaggedUnion
public static class ExternallyTaggedUnion.TypedKeysDeserializer<Union extends TaggedUnion<?,?>>
extends JsonpDeserializerBase<Map<String,Union>>
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(jakarta.json.stream.JsonParser parser, JsonpMapper mapper, jakarta.json.stream.JsonParser.Event event) Deserialize a value.void
deserializeEntry
(String key, jakarta.json.stream.JsonParser parser, JsonpMapper mapper, Map<String, Union> targetMap) Methods inherited from class co.elastic.clients.json.JsonpDeserializerBase
acceptedEvents, accepts, allAcceptedEvents, nativeEvents
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.json.JsonpDeserializer
deserialize
-
Constructor Details
-
TypedKeysDeserializer
-
-
Method Details
-
deserialize
public Map<String,Union> deserialize(jakarta.json.stream.JsonParser parser, JsonpMapper mapper, jakarta.json.stream.JsonParser.Event event) Description copied from interface:JsonpDeserializer
Deserialize a value. The value starts at the current state in the JSON stream.- Parameters:
parser
- the JSON parsermapper
- the JSON-P mapperevent
- the current state ofparser
, which must be part ofJsonpDeserializer.acceptedEvents()
- Returns:
- the parsed value
-
deserializeEntry
public void deserializeEntry(String key, jakarta.json.stream.JsonParser parser, JsonpMapper mapper, Map<String, Union> targetMap)
-