PairKt

public final class PairKt


Summary

Public methods

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

Returns the first component of the pair.

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

Returns the first component of the pair.

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

Returns the second component of the pair.

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

Returns the second component of the pair.

static 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.

static 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.

static 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.

static 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.

Public methods

PairKt.component1

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

Returns the first component of the pair.

This method allows to use destructuring declarations when