@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GeoPt other = (GeoPt) obj; return eq(getElev(), other.getElev()) && eq(getLabel(), other.getLabel()) && eq(getLat(), other.getLat()) && eq(getLon(), other.getLon()) && eq(getTime(), other.getTime()); }
@Override public int hashCode() { int result = getClass().hashCode(); if (getElev() != null) { result = 37 * result + getElev().hashCode(); } if (getLabel() != null) { result = 37 * result + getLabel().hashCode(); } if (getLat() != null) { result = 37 * result + getLat().hashCode(); } if (getLon() != null) { result = 37 * result + getLon().hashCode(); } if (getTime() != null) { result = 37 * result + getTime().hashCode(); } return result; } }
/** * Returns whether it has the Label. * * @return whether it has the Label */ public boolean hasLabel() { return getLabel() != null; }
/** * Returns whether it has the Time. * * @return whether it has the Time */ public boolean hasTime() { return getTime() != null; }
/** * Returns whether it has the Longitude. * * @return whether it has the Longitude */ public boolean hasLon() { return getLon() != null; }
/** * Returns whether it has the Latitude. * * @return whether it has the Latitude */ public boolean hasLat() { return getLat() != null; }
/** * Returns whether it has the Elevation. * * @return whether it has the Elevation */ public boolean hasElev() { return getElev() != null; }
@Override public int hashCode() { int result = getClass().hashCode(); if (getElev() != null) { result = 37 * result + getElev().hashCode(); } if (getLabel() != null) { result = 37 * result + getLabel().hashCode(); } if (getLat() != null) { result = 37 * result + getLat().hashCode(); } if (getLon() != null) { result = 37 * result + getLon().hashCode(); } if (getTime() != null) { result = 37 * result + getTime().hashCode(); } return result; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GeoPt other = (GeoPt) obj; return eq(getElev(), other.getElev()) && eq(getLabel(), other.getLabel()) && eq(getLat(), other.getLat()) && eq(getLon(), other.getLon()) && eq(getTime(), other.getTime()); }
@Override public int hashCode() { int result = getClass().hashCode(); if (getElev() != null) { result = 37 * result + getElev().hashCode(); } if (getLabel() != null) { result = 37 * result + getLabel().hashCode(); } if (getLat() != null) { result = 37 * result + getLat().hashCode(); } if (getLon() != null) { result = 37 * result + getLon().hashCode(); } if (getTime() != null) { result = 37 * result + getTime().hashCode(); } return result; } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GeoPt other = (GeoPt) obj; return eq(getElev(), other.getElev()) && eq(getLabel(), other.getLabel()) && eq(getLat(), other.getLat()) && eq(getLon(), other.getLon()) && eq(getTime(), other.getTime()); }