KtPair<A, B> class

Represents a generic pair of two values.

There is no meaning attached to values in this class, it can be used for any purpose. Pair exhibits value semantics, i.e. two pairs are equal if both components are equal.

@param A type of the first value. @param B type of the second value. @property first First value. @property second Second value.

Available extensions

Constructors

KtPair(A first, B second)
const

Properties

first → A
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second → B
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toList() KtList<T>

Available on KtPair<T, T>, provided by the PairDeconstruction extension

Converts this pair into a list.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override