Parameters

class Parameters : Iterable<Pair<String, Parameters.Entry>>

A map of generic values that can be used to pass custom data to Fetchers and Decoders.

Constructors

Parameters
Link copied to clipboard
fun Parameters()

Types

Builder
Link copied to clipboard
class Builder
Companion
Link copied to clipboard
object Companion
Entry
Link copied to clipboard
data class Entry(value: Any?, cacheKey: String?)

Functions

cacheKey
Link copied to clipboard
fun cacheKey(key: String): String?
Returns the cache key associated with key or null if key has no mapping.
cacheKeys
Link copied to clipboard
fun cacheKeys(): Map<String, String>
Returns a map of keys to non null cache keys.
entry
Link copied to clipboard
fun entry(key: String): Parameters.Entry?
Returns the entry associated with key or null if key has no mapping.
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
forEach
Link copied to clipboard
open fun forEach(p0: Consumer<in Pair<String, Parameters.Entry>>)
hashCode
Link copied to clipboard
open override fun hashCode(): Int
isEmpty
Link copied to clipboard
fun isEmpty(): Boolean
Returns true if this object has no parameters.
iterator
Link copied to clipboard
open operator override fun iterator(): Iterator<Pair<String, Parameters.Entry>>
Returns an Iterator over the entries in the Parameters.
newBuilder
Link copied to clipboard
fun newBuilder(): Parameters.Builder
spliterator
Link copied to clipboard
open fun spliterator(): Spliterator<Pair<String, Parameters.Entry>>
toString
Link copied to clipboard
open override fun toString(): String
value
Link copied to clipboard
fun value(key: String): Any?
Returns the value associated with key or null if key has no mapping.
values
Link copied to clipboard
fun values(): Map<String, Any?>
Returns a map of keys to values.

Properties

size
Link copied to clipboard
val size: Int
Returns the number of parameters in this object.

Extensions

count
Link copied to clipboard
inline fun Parameters.count(): Int
Returns the number of parameters in this object.
get
Link copied to clipboard
inline operator fun Parameters.get(key: String): Any?
Returns the value associated with key or null if key has no mapping.
isNotEmpty
Link copied to clipboard
inline fun Parameters.isNotEmpty(): Boolean
Return true when the set contains elements.