Class CoupleCreationTO

java.lang.Object
org.opentcs.access.to.model.CoupleCreationTO
All Implemented Interfaces:
Serializable

public class CoupleCreationTO extends Object implements Serializable
A transfer object describing generic 2-tuple of long integer values.
See Also:
  • 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

      public CoupleCreationTO withX(long x)
      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

      public CoupleCreationTO withY(long y)
      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.