kotcity4 / aballano.kotlinmemoization.tuples / Quadruple

Quadruple

data class Quadruple<out A, out B, out C, out D> : Serializable

Represents a tetrad of values

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

Parameters

A - type of the first value.

B - type of the second value.

C - type of the third value.

D - type of the fourth value.

Constructors

<init>

Quadruple(first: A, second: B, third: C, fourth: D)

Represents a tetrad of values

Properties

first

val first: A

First value.

fourth

val fourth: D

Fourth value.

second

val second: B

Second value.

third

val third: C

Third value.

Functions

toString

fun toString(): String

Returns string representation of the Quadruple including its first, second, third and fourth values.