1 package com.thoughtworks.someobjects; 2 3 public class FunnyConstructor { 4 public int i; 5 6 public FunnyConstructor(int i) { 7 this.i = i; 8 } 9 10 public boolean equals(Object o) { 11 if (this == o) return true; 12 if (!(o instanceof FunnyConstructor)) return false; 13 14 final FunnyConstructor z = (FunnyConstructor) o; 15 16 if (i != z.i) return false; 17 18 return true; 19 } 20 21 public String toString() { 22 return "FunnyConstructor:" + i; 23 } 24 }

This page was automatically generated by Maven