kotcity4 / aballano.kotlinmemoization.tuples / Quintuple

Quintuple

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

Represents a pentad of values

There is no meaning attached to values in this class, it can be used for any purpose. Quintuple exhibits value semantics, i.e. two quintuple 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.

E - type of the fifth value.

Constructors

<init>

Quintuple(first: A, second: B, third: C, fourth: D, fifth: E)

Represents a pentad of values

Properties

fifth

val fifth: E

Fifth value.

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, fourth and fifth values.