Package models

Class Coordinates

java.lang.Object
models.Coordinates
All Implemented Interfaces:
Serializable

public class Coordinates extends Object implements Serializable
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.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    double
    Restrictions: The value of this field should be greater than -107.
    Restrictions: Field cannot be null and the value of this field should be greater than -39.
    int
     
    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.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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
    • setX

      public void setX (double x)
      Restrictions: The value of this field should be greater than -107.
      Parameters:
      x - Value of field x
    • getY

      public Float getY()
      Restrictions: Field cannot be null and the value of this field should be greater than -39.
      Returns:
      Value of field y
    • setY

      public void setY (Float y)
      Restrictions: Field cannot be null and the value of this field should be greater than -39.
      Parameters:
      y - Value of field y
    • equals

      public boolean equals (Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object