Package models
Class Location
java.lang.Object
models.Location
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
Restrictions: Field cannot be null.float
getX()
No restrictions.getY()
Restrictions: Field cannot be null.getZ()
Restrictions: Field cannot be null.int
hashCode()
void
Restrictions: Field cannot be null.void
setX
(float x) No restrictions.void
Restrictions: Field cannot be null.void
Restrictions: Field cannot be null.toString()
-
Constructor Details
-
Location
public Location()
-
-
Method Details
-
getX
public float getX()No restrictions.- Returns:
- Value of field x
-
getY
Restrictions: Field cannot be null.- Returns:
- Value of field y
-
getZ
Restrictions: Field cannot be null.- Returns:
- Value of field z
-
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
Restrictions: Field cannot be null.- Parameters:
y
- Value of field y
-
setZ
Restrictions: Field cannot be null.- Parameters:
z
- Value of field z
-
setName
Restrictions: Field cannot be null. String must not be empty.- Parameters:
name
- Value of field name
-
equals
-
hashCode
public int hashCode() -
toString
-