package at.hannibal2.skyhanni.utils import java.io.Serializable /** * Represents a tetrad of values * * There is no meaning attached to values in this class, it can be used for any purpose. * Quad exhibits value semantics, i.e. two quads are equal if all four components are equal. * * @param A type of the first value. * @param B type of the second value. * @param C type of the third value. * @param D type of the fourth value. * @property first First value. * @property second Second value. * @property third Third value. * @property fourth Fourth value. */ data class Quad( val first: A, val second: B, val third: C, val fourth: D ) : Serializable { /** * Returns string representation of the [Quad] including its [first], [second], [third] and [fourth] values. */ override fun toString(): String = "($first, $second, $third, $fourth)" }