Kayaman: equos methos, EPoints (pointA, pointB pointC) :
pointA.equals(pointB)
pointA.equals(pointC)
pointB.equals(pointC)
. .
" " -, :
EPoint EPoint . , , EPoint lat lon, , EPoint EPoint int.
, , ,... ).
equals() hashcode() "" , :
@Override
public boolean equals(Object o) {
if (o == this)
return true;
if (!(o instanceof EPoint)) {
return false;
}
EPoint ePoint = (EPoint) o;
return this.gridLon() == ePoint.gridLon() && ePoint.gridLat() == this.gridLat();
}
@Override
public int hashCode() {
return Objects.hash(this.gridLon(), this.gridLat());
}