boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GitRemote gitRemote = (GitRemote)o; return myName.equals(gitRemote.myName); // other parameters don't count: remotes are equal if their names are equal // TODO: LOG.warn if other parameters differ }