package com.indix.gocd.s3publish.utils;

public class Tuple2<Left, Right> {
    private Left left;
    private Right right;

    public Tuple2(Left left, Right right) {
        this.left = left;
        this.right = right;
    }

    public Left _1() {
        return left;
    }

    public Right _2() {
        return right;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Tuple2 tuple2 = (Tuple2) o;

        if (!left.equals(tuple2.left)) return false;
        if (!right.equals(tuple2.right)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = left.hashCode();
        result = 31 * result + right.hashCode();
        return result;
    }
}

@@ -86,20 +86,18 @@
 te Left 
-left
+_1
 ;%0A    pr
@@ -108,21 +108,18 @@
 e Right 
-right
+_2
 ;%0A%0A    p
@@ -140,20 +140,18 @@
 eft 
-left
+_1
 , Right 
 righ
@@ -146,21 +146,18 @@
 , Right 
-right
+_2
 ) %7B%0A    
@@ -169,19 +169,15 @@
 his.
-left = left
+_1 = _1
 ;%0A  
@@ -191,21 +191,15 @@
 his.
-right = right
+_2 = _2
 ;%0A  
@@ -241,20 +241,18 @@
  return 
-left
+_1
 ;%0A    %7D%0A
@@ -291,21 +291,18 @@
  return 
-right
+_2
 ;%0A    %7D%0A
@@ -508,20 +508,18 @@
    if (!
-left
+_1
 .equals(
@@ -525,20 +525,18 @@
 (tuple2.
-left
+_1
 )) retur
@@ -557,21 +557,18 @@
    if (!
-right
+_2
 .equals(
@@ -574,21 +574,18 @@
 (tuple2.
-right
+_2
 )) retur
@@ -689,12 +689,10 @@
 t = 
-left
+_1
 .has
@@ -735,13 +735,10 @@
 t + 
-right
+_2
 .has

making the private instances as _1 and _2