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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toList(
) → KtList< T> -
Available on KtPair<
Converts this pair into a list.T, T> , provided by the PairDeconstruction extension -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override