Class DictionaryResponse<TKey,TValue>
java.lang.Object
co.elastic.clients.transport.endpoints.DictionaryResponse<TKey,TValue>
- All Implemented Interfaces:
JsonpSerializable
Base class for dictionary responses, i.e. a series of key/value pairs.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
DictionaryResponse.AbstractBuilder<TKey,
TValue, BuilderT extends DictionaryResponse.AbstractBuilder<TKey, TValue, BuilderT>> -
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionresult()
Returns the response as a map.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this value to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static <TKey,
TValue, BuilderT extends DictionaryResponse.AbstractBuilder<TKey, TValue, BuilderT>>
voidsetupDictionaryResponseDeserializer
(ObjectDeserializer<BuilderT> op, JsonpDeserializer<TKey> tKeyParser, JsonpDeserializer<TValue> tValueParser) toString()
-
Constructor Details
-
DictionaryResponse
-
-
Method Details
-
result
Returns the response as a map. -
get
-
serialize
Serialize this value to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDictionaryResponseDeserializer
protected static <TKey,TValue, void setupDictionaryResponseDeserializerBuilderT extends DictionaryResponse.AbstractBuilder<TKey, TValue, BuilderT>> (ObjectDeserializer<BuilderT> op, JsonpDeserializer<TKey> tKeyParser, JsonpDeserializer<TValue> tValueParser)
-