boolean (Object other) { if (this == other) return true; if (other == null || getClass() != other.getClass()) return false; GeneratedLocation location = (GeneratedLocation)other; return myLineNumber == location.myLineNumber && myReferenceType.equals(location.myReferenceType) && myMethodName.equals(location.myMethodName); }