1 package com.thoughtworks.someobjects;
2
3 public class Y {
4 public String yField;
5
6 public boolean equals(Object o) {
7 if (this == o) return true;
8 if (!(o instanceof Y)) return false;
9
10 final Y y = (Y) o;
11
12 if (yField != null ? !yField.equals(y.yField) : y.yField != null) return false;
13
14 return true;
15 }
16
17 public String toString() {
18 return "Y:" + yField;
19 }
20 }
This page was automatically generated by Maven