From 02fd54b1fc5b34c9a6cb1c2d80cbc0336c608097 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 17 Oct 2024 22:38:11 +0500 Subject: feat: triple tuple --- .../kz/ilotterytea/javaextra/tuples/Triple.java | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 core/src/kz/ilotterytea/javaextra/tuples/Triple.java diff --git a/core/src/kz/ilotterytea/javaextra/tuples/Triple.java b/core/src/kz/ilotterytea/javaextra/tuples/Triple.java new file mode 100644 index 0000000..7309120 --- /dev/null +++ b/core/src/kz/ilotterytea/javaextra/tuples/Triple.java @@ -0,0 +1,37 @@ +package kz.ilotterytea.javaextra.tuples; + +public class Triple { + private A first; + private B second; + private C third; + + public Triple(A first, B second, C third) { + this.first = first; + this.second = second; + this.third = third; + } + + public A getFirst() { + return first; + } + + public void setFirst(A first) { + this.first = first; + } + + public B getSecond() { + return second; + } + + public void setSecond(B second) { + this.second = second; + } + + public C getThird() { + return third; + } + + public void setThird(C third) { + this.third = third; + } +} -- cgit v1.2.3