-
- All Implemented Interfaces:
-
kotlin.collections.Iterable
public final class Parameters implements Iterable<Pair<String, Parameters.Entry>>
A map of generic values that can be used to pass custom data to Fetchers and Decoders.
Parameters are different from Tags as parameters are used to add extensions to ImageRequest whereas Tags are used for custom user metadata. Parameters also are not attached to any OkHttp Requests and also modify the request's memory cache key by default.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classParameters.Entrypublic final classParameters.Builderpublic classParameters.Companion
-
Constructor Summary
Constructors Constructor Description Parameters()
-
Method Summary
Modifier and Type Method Description final Integersize()final <T extends Any> Tvalue(String key)Returns the value associated with key or null if key has no mapping. final StringmemoryCacheKey(String key)Returns the cache key associated with key or null if key has no mapping. final Parameters.Entryentry(String key)Returns the entry associated with key or null if key has no mapping. final BooleanisEmpty()Returns 'true' if this object has no parameters. final Map<String, Object>values()Returns a map of keys to values. final Map<String, String>memoryCacheKeys()Returns a map of keys to non-null memory cache keys. Iterator<Pair<String, Parameters.Entry>>iterator()Returns an Iterator over the entries in the Parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final Parameters.BuildernewBuilder()-
-
Method Detail
-
memoryCacheKey
final String memoryCacheKey(String key)
-
entry
final Parameters.Entry entry(String key)
-
memoryCacheKeys
final Map<String, String> memoryCacheKeys()
Returns a map of keys to non-null memory cache keys. Entries with a null keys are filtered.
-
iterator
Iterator<Pair<String, Parameters.Entry>> iterator()
Returns an Iterator over the entries in the Parameters.
-
newBuilder
final Parameters.Builder newBuilder()
-
-
-
-