GuavaOptionalAdapter

class GuavaOptionalAdapter<T : Any>(wrappedAdapter: Adapter<T>) : Adapter<Optional<T>>

An adapter for Guava's Optional. null is deserialized as Optional.absent.

Constructors

Link copied to clipboard
constructor(wrappedAdapter: Adapter<T>)

Functions

Link copied to clipboard
open override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): Optional<T>
Link copied to clipboard
open override fun toJson(writer: JsonWriter, customScalarAdapters: CustomScalarAdapters, value: Optional<T>)