LongLongPair
-
Cmn
class LongLongPair
Container to ease passing around a tuple of two Long values.
Summary
Public constructors |
|
|---|---|
LongLongPair(first: Long, second: Long) |
Cmn
|
Public functions |
||
|---|---|---|
inline operator Long |
Returns the |
Cmn
|
inline operator Long |
Returns the |
Cmn
|
open operator Boolean |
Checks the two values for equality. |
Cmn
|
open Int |
hashCode()Compute a hash code using the hash codes of the underlying values |
Cmn
|
open String |
toString() |
Cmn
|
Public constructors
Public functions
component1
inline operator fun component1(): Long
Returns the first component of the pair. For instance, the first component of PairLongLong(3, 4) is 3.
This method allows to use destructuring declarations when working with pairs, for example:
val (first, second) = myPair
component2
inline operator fun component2(): Long
Returns the second component of the pair. For instance, the second component of PairLongLong(3, 4) is 4.
This method allows to use destructuring declarations when working with pairs, for example:
val (first, second) = myPair
equals
open operator fun equals(other: Any?): Boolean
Checks the two values for equality.
| Parameters | |
|---|---|
other: Any? |
the |
| Returns | |
|---|---|
Boolean |
true if the underlying values of the |
hashCode
open fun hashCode(): Int
Compute a hash code using the hash codes of the underlying values
| Returns | |
|---|---|
Int |
a hashcode of the |