boolean (Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Version version = (Version)o; if (myMajor != version.myMajor) { return false; } if (myMinor != version.myMinor) { return false; } return true; }