summaryrefslogtreecommitdiff
path: root/core/src/kz/ilotterytea/javaextra/tuples
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-10-26 00:52:53 +0500
committerilotterytea <iltsu@alright.party>2024-10-26 00:52:53 +0500
commit4c205aaaf26b65ed6f5ada09b894345f131d5be7 (patch)
tree0feeb0aa6cd7057f1ce4ec344a9d86c9bf67cee0 /core/src/kz/ilotterytea/javaextra/tuples
parentd1ee70ccb99cc23cbd3d20bb5daf70cd9aa54205 (diff)
upd: code cleanup
Diffstat (limited to 'core/src/kz/ilotterytea/javaextra/tuples')
-rw-r--r--core/src/kz/ilotterytea/javaextra/tuples/Triple.java17
1 files changed, 3 insertions, 14 deletions
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<A, B, C> {
- 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<A, B, C> {
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;
- }
}