boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; LevelAndCount count = (LevelAndCount)o; if (myCount != count.myCount) return false; if (!Objects.equals(myLevel, count.myLevel)) return false; return true; }