Package models
Class Coordinates
java.lang.Object
models.Coordinates
Model of Coordinates. Sub-model of the
Route
. Contains getters/setters of each class fields.
Some fields have restrictions. It's signed under every method of field.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
double
getX()
Restrictions: The value of this field should be greater than -107.getY()
Restrictions: Field cannot be null and the value of this field should be greater than -39.int
hashCode()
void
setX
(double x) Restrictions: The value of this field should be greater than -107.void
Restrictions: Field cannot be null and the value of this field should be greater than -39.toString()
-
Constructor Details
-
Coordinates
public Coordinates()
-
-
Method Details
-
getX
public double getX()Restrictions: The value of this field should be greater than -107.- Returns:
- Value of field x
-
getY
Restrictions: Field cannot be null and the value of this field should be greater than -39.- Returns:
- Value of field y
-
setX
public void setX(double x) Restrictions: The value of this field should be greater than -107.- Parameters:
x
- Value of field x
-
setY
Restrictions: Field cannot be null and the value of this field should be greater than -39.- Parameters:
y
- Value of field y
-
equals
-
hashCode
public int hashCode() -
toString
-