Package co.elastic.clients.json
Class DelegatingDeserializer<T,U>
java.lang.Object
co.elastic.clients.json.DelegatingDeserializer<T,U>
- All Implemented Interfaces:
JsonpDeserializer<T>
- Direct Known Subclasses:
BuildFunctionDeserializer,DelegatingDeserializer.SameType,ObjectBuilderDeserializer
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEnumSet<jakarta.json.stream.JsonParser.Event>The JSON events this deserializer accepts as a starting point.EnumSet<jakarta.json.stream.JsonParser.Event>The native JSON events this deserializer accepts as a starting point.protected abstract JsonpDeserializer<U>unwrap()static JsonpDeserializer<?>unwrap(JsonpDeserializer<?> deserializer) Unwraps a deserializer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.json.JsonpDeserializer
accepts, deserialize, deserialize
-
Constructor Details
-
DelegatingDeserializer
public DelegatingDeserializer()
-
-
Method Details
-
unwrap
-
nativeEvents
Description copied from interface:JsonpDeserializerThe native JSON events this deserializer accepts as a starting point. For example, native events for a boolean areJsonParser.Event.VALUE_TRUEandJsonParser.Event.VALUE_FALSE.- Specified by:
nativeEventsin interfaceJsonpDeserializer<T>
-
acceptedEvents
Description copied from interface:JsonpDeserializerThe JSON events this deserializer accepts as a starting point. For example, events for a boolean areJsonParser.Event.VALUE_TRUE,JsonParser.Event.VALUE_FALSEandJsonParser.Event.VALUE_STRING, the latter being converted to a boolean usingBoolean.parseBoolean(String).- Specified by:
acceptedEventsin interfaceJsonpDeserializer<T>
-
unwrap
Unwraps a deserializer. The object type of the result may be different from that ofdeserializerand unwrapping can happen several times, until the result is no more aDelegatingDeserializer.
-