CacheEntrySerializer

class CacheEntrySerializer<K, V> @Inject constructor(moshi: Moshi, keyAdapter: JsonAdapter<K>, valueAdapter: JsonAdapter<V>) : JsonAdapter<CacheEntry<K, V>>

An implementation of a Moshi JsonAdapter for the CacheEntry class

Constructors

Link copied to clipboard
@Inject
constructor(moshi: Moshi, keyAdapter: JsonAdapter<K>, valueAdapter: JsonAdapter<V>)

Functions

Link copied to clipboard
fun failOnUnknown(): JsonAdapter<CacheEntry<K, V>>
Link copied to clipboard
open override fun fromJson(reader: JsonReader): CacheEntry<K, V>
fun fromJson(p0: BufferedSource): CacheEntry<K, V>?
Link copied to clipboard
Link copied to clipboard
open fun indent(p0: String): JsonAdapter<CacheEntry<K, V>>
Link copied to clipboard
fun lenient(): JsonAdapter<CacheEntry<K, V>>
Link copied to clipboard
fun nonNull(): JsonAdapter<CacheEntry<K, V>>
Link copied to clipboard
fun nullSafe(): JsonAdapter<CacheEntry<K, V>>
Link copied to clipboard
fun serializeNulls(): JsonAdapter<CacheEntry<K, V>>
Link copied to clipboard
open override fun toJson(writer: JsonWriter, cacheEntry: CacheEntry<K, V>?)
fun toJson(p0: CacheEntry<K, V>?): String
fun toJson(p0: BufferedSink, p1: CacheEntry<K, V>?)
Link copied to clipboard
fun toJsonValue(p0: CacheEntry<K, V>?): Any?