Interface Point


public interface Point
A pair of numbers that in general are used to define coordinates in the two-dimensional space.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Point
    Returns an empty Point that has x and y values set to zero.
    static Point
    of(int x, int y)
    Returns the Point instance for the given x and y values.
    default int
    x()
    Returns the horizontal coordinate.
    default int
    y()
    Returns the vertical coordinate.
  • Method Details

    • empty

      static Point empty()
      Returns an empty Point that has x and y values set to zero.
    • of

      static Point of(int x, int y)
      Returns the Point instance for the given x and y values.
    • x

      default int x()
      Returns the horizontal coordinate.
    • y

      default int y()
      Returns the vertical coordinate.