Class Point

java.lang.Object
org.mariadb.jdbc.type.Point
All Implemented Interfaces:
Geometry

public class Point extends Object implements Geometry
Point
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final double
     
    private final double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Point(double x, double y)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    double
    Get abscissa
    double
    get ordinate
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • x

      private final double x
    • y

      private final double y
  • Constructor Details

    • Point

      public Point(double x, double y)
      Constructor
      Parameters:
      x - abscissa
      y - ordinate
  • Method Details

    • getX

      public double getX()
      Get abscissa
      Returns:
      abscissa
    • getY

      public double getY()
      get ordinate
      Returns:
      ordinate
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object