Package org.opentcs.access.to.model
Class CoupleCreationTO
java.lang.Object
org.opentcs.access.to.model.CoupleCreationTO
- All Implemented Interfaces:
Serializable
A transfer object describing generic 2-tuple of long integer values.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CoupleCreationTO
public CoupleCreationTO(long x, long y) Creates a new instance.- Parameters:
x
- The X coordinate.y
- The Y coordinate.
-
-
Method Details
-
getX
public long getX()Returns the x coordinate.- Returns:
- The x coordinate.
-
withX
Creates a copy of this object, with the given x coordinate.- Parameters:
x
- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-
getY
public long getY()Returns the y coordinate.- Returns:
- The y coordinate.
-
withY
Creates a copy of this object, with the given y coordinate.- Parameters:
y
- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-