boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; InstalledPackage aPackage = (InstalledPackage)o; return myName.equals(aPackage.myName) && Objects.equals(myVersion, aPackage.myVersion); }