Package models

Class Location

java.lang.Object
models.Location

public class Location extends Object
Model of Location. 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 Details

    • Location

      public Location()
  • Method Details

    • getX

      public float getX()
      No restrictions.
      Returns:
      Value of field x
    • getY

      public Long getY()
      Restrictions: Field cannot be null.
      Returns:
      Value of field y
    • getZ

      public Long getZ()
      Restrictions: Field cannot be null.
      Returns:
      Value of field z
    • getName

      public String getName()
      Restrictions: Field cannot be null. String must not be empty.
      Returns:
      Value of field name
    • setX

      public void setX(float x)
      No restrictions.
      Parameters:
      x - Value of field x
    • setY

      public void setY(Long y)
      Restrictions: Field cannot be null.
      Parameters:
      y - Value of field y
    • setZ

      public void setZ(Long z)
      Restrictions: Field cannot be null.
      Parameters:
      z - Value of field z
    • setName

      public void setName(String name)
      Restrictions: Field cannot be null. String must not be empty.
      Parameters:
      name - Value of field name
    • 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