File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
src/main/java/com/datdeveloper/datmoddingapi/collections Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ package com .datdeveloper .datmoddingapi .collections ;
2
+
3
+ /**
4
+ * A simple container for 2 values
5
+ * @param <lh> the type of the left hand
6
+ * @param <rh> the type of the right hand
7
+ */
8
+ public class Pair <lh , rh > {
9
+ private lh leftHand ;
10
+ private rh rightHand ;
11
+
12
+ public Pair (final lh leftHand , final rh rightHand ) {
13
+ this .leftHand = leftHand ;
14
+ this .rightHand = rightHand ;
15
+ }
16
+
17
+ public lh getLeftHand () {
18
+ return leftHand ;
19
+ }
20
+
21
+ public rh getRightHand () {
22
+ return rightHand ;
23
+ }
24
+
25
+ public void setLeftHand (final lh leftHand ) {
26
+ this .leftHand = leftHand ;
27
+ }
28
+
29
+ public void setRightHand (final rh rightHand ) {
30
+ this .rightHand = rightHand ;
31
+ }
32
+ }
You can’t perform that action at this time.
0 commit comments