summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/kz/ilotterytea/javaextra/tuples/Triple.java37
1 files changed, 37 insertions, 0 deletions
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<A, B, C> {
+ 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;
+ }
+}