From 4c205aaaf26b65ed6f5ada09b894345f131d5be7 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 26 Oct 2024 00:52:53 +0500 Subject: upd: code cleanup --- core/src/kz/ilotterytea/javaextra/tuples/Triple.java | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'core/src/kz/ilotterytea/javaextra/tuples') diff --git a/core/src/kz/ilotterytea/javaextra/tuples/Triple.java b/core/src/kz/ilotterytea/javaextra/tuples/Triple.java index 7309120..0fd7fbf 100644 --- a/core/src/kz/ilotterytea/javaextra/tuples/Triple.java +++ b/core/src/kz/ilotterytea/javaextra/tuples/Triple.java @@ -1,9 +1,9 @@ package kz.ilotterytea.javaextra.tuples; public class Triple { - private A first; - private B second; - private C third; + private final A first; + private final B second; + private final C third; public Triple(A first, B second, C third) { this.first = first; @@ -15,23 +15,12 @@ public class Triple { 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