Created
September 17, 2020 14:54
-
-
Save alifhasnain/8b7109d7310b6ac64c9a13d4d80d5d33 to your computer and use it in GitHub Desktop.
Quadruple class for Kotlin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.Serializable | |
data class Quadruple<A,B,C,D>(var first: A, var second: B, var third: C, var fourth: D): Serializable { | |
override fun toString(): String = "($first, $second, $third, $fourth)" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment