1 package com.diasparsoftware.java.lang.test; 2 3 public class FiveKeys { 4 public int a; 5 public int b; 6 public int c; 7 public int d; 8 public int e; 9 10 public FiveKeys(int a, int b, int c, int d, int e) { 11 this.a = a; 12 this.b = b; 13 this.c = c; 14 this.d = d; 15 this.e = e; 16 } 17 18 public boolean equals(Object other) { 19 if (other instanceof FiveKeys) { 20 FiveKeys that = (FiveKeys) other; 21 return this.a == that.a 22 && this.b == that.b 23 && this.c == that.c 24 && this.d == that.d 25 && this.e == that.e; 26 } 27 else { 28 return false; 29 } 30 } 31 32 public int hashCode() { 33 return 0; 34 } 35 36 public String toString() { 37 return "FiveKeys[" + a + b + c + d + e + "]"; 38 } 39 }