boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SemVer semVer = (SemVer)o; return myMajor == semVer.myMajor && myMinor == semVer.myMinor && myPatch == semVer.myPatch && Objects.equals(myPreRelease, semVer.myPreRelease); }