Preferences.Pair

public final class Preferences.Pair<T extends Object>


Key Value pairs for Preferences. Type T is the type of the value.

Construct these using the infix function to.

Summary

Extension functions

final @NonNull F
<F extends Object, S extends Object> PairKt.component1(Pair<F, S> receiver)

Returns the first component of the pair.

final @NonNull F
<F extends Object, S extends Object> PairKt.component1(Pair<F, S> receiver)

Returns the first component of the pair.

final @NonNull S
<F extends Object, S extends Object> PairKt.component2(Pair<F, S> receiver)

Returns the second component of the pair.

final @NonNull S
<F extends Object, S extends Object> PairKt.component2(Pair<F, S> receiver)

Returns the second component of the pair.

final @NonNull Pair<@NonNull F, @NonNull S>
<F extends Object, S extends Object> PairKt.toAndroidPair(Pair<F, S> receiver)

Returns this Kotlin Pair as an Android Pair.

final @NonNull Pair<@NonNull F, @NonNull S>
<F extends Object, S extends Object> PairKt.toAndroidXPair(Pair<F, S> receiver)

Returns this Kotlin Pair as an AndroidX Pair.

final @NonNull Pair<@NonNull F, @NonNull S>
<F extends Object, S extends Object> PairKt.toKotlinPair(Pair<F, S> receiver)

Returns this AndroidX Pair as a Kotlin Pair.

final @NonNull Pair<@NonNull F, @NonNull S>
<F extends Object, S extends Object> PairKt.toKotlinPair(Pair<F, S> receiver)

Returns this Android Pair as a Kotlin Pair.

Extension functions