public static boolean equals(Station station1, Station station2) { if (station1 == station2) { return true; } else if (station1 == null || station2 == null) { return false; } if (!equals((EarthLocation) station1, station2)) { return false; } else if (!Objects.deepEquals(station1.getName(), station2.getName())) { return false; } else if (!Objects.deepEquals(station1.getWmoId(), station2.getWmoId())) { return false; } else if (!Objects.deepEquals(station1.getDescription(), station2.getDescription())) { return false; } else if (!Objects.deepEquals(station1.getNobs(), station2.getNobs())) { return false; } return true; }