Class DictionaryResponse<TKey,TValue>
java.lang.Object
co.elastic.clients.transport.endpoints.DictionaryResponse<TKey,TValue>
- All Implemented Interfaces:
JsonpSerializable
public abstract class DictionaryResponse<TKey,TValue> extends java.lang.Object implements JsonpSerializable
Base class for dictionary responses, i.e. a series of key/value pairs.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DictionaryResponse.AbstractBuilder<TKey,TValue,BuilderT extends DictionaryResponse.AbstractBuilder<TKey,TValue,BuilderT>>
-
Constructor Summary
Constructors Modifier Constructor Description protected
DictionaryResponse(DictionaryResponse.AbstractBuilder<TKey,TValue,?> builder)
-
Method Summary
Modifier and Type Method Description TValue
get(java.lang.String key)
java.util.Map<java.lang.String,TValue>
result()
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)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupDictionaryResponseDeserializer
protected static <TKey, TValue, BuilderT extends DictionaryResponse.AbstractBuilder<TKey, TValue, BuilderT>> void setupDictionaryResponseDeserializer(ObjectDeserializer<BuilderT> op, JsonpDeserializer<TKey> tKeyParser, JsonpDeserializer<TValue> tValueParser)
-