Package org.opensearch.client.json
Class DelegatingDeserializer.SameType<T>
- java.lang.Object
-
- org.opensearch.client.json.DelegatingDeserializer<T,T>
-
- org.opensearch.client.json.DelegatingDeserializer.SameType<T>
-
- All Implemented Interfaces:
JsonpDeserializer<T>
- Enclosing class:
- DelegatingDeserializer<T,U>
public abstract static class DelegatingDeserializer.SameType<T> extends DelegatingDeserializer<T,T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opensearch.client.json.DelegatingDeserializer
DelegatingDeserializer.SameType<T>
-
-
Constructor Summary
Constructors Constructor Description SameType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tdeserialize(jakarta.json.stream.JsonParser parser, JsonpMapper mapper)Deserialize a value.Tdeserialize(jakarta.json.stream.JsonParser parser, JsonpMapper mapper, jakarta.json.stream.JsonParser.Event event)Deserialize a value.-
Methods inherited from class org.opensearch.client.json.DelegatingDeserializer
acceptedEvents, nativeEvents, unwrap, unwrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.JsonpDeserializer
accepts
-
-
-
-
Method Detail
-
deserialize
public T deserialize(jakarta.json.stream.JsonParser parser, JsonpMapper mapper)
Description copied from interface:JsonpDeserializerDeserialize a value. The value starts at the next state in the JSON stream.Default implementation delegates to
JsonpDeserializer.deserialize(JsonParser, JsonpMapper, Event)after having checked that the next event is part of the accepted events.If the next event is
JsonParser.Event.VALUE_NULL,nullis returned unlessJsonParser.Event.VALUE_NULLis part of the deserializer's accepted events.- Parameters:
parser- the JSON parsermapper- the JSON-P mapper- Returns:
- the parsed value or null
-
deserialize
public T deserialize(jakarta.json.stream.JsonParser parser, JsonpMapper mapper, jakarta.json.stream.JsonParser.Event event)
Description copied from interface:JsonpDeserializerDeserialize 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
-
-