@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((location == null) ? 0 : location.hashCode()); result = prime * result + ((arrival == null) ? 0 : arrival.hashCode()); result = prime * result + ((date == null) ? 0 : date.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Navitia other = (Navitia) obj; if (location == null) { if (other.location != null) return false; } else if (!location.equals(other.location)) return false; if (arrival == null) { if (other.arrival != null) return false; } else if (!arrival.equals(other.arrival)) return false; if (date == null) { if (other.date != null) return false; } else if (!date.equals(other.date)) return false; return true; }