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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Restrictions: Field cannot be null.floatgetX()No restrictions.getY()Restrictions: Field cannot be null.getZ()Restrictions: Field cannot be null.inthashCode()voidRestrictions: Field cannot be null.voidsetX(float x) No restrictions.voidRestrictions: Field cannot be null.voidRestrictions: 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
-