Record Class GeoPolygonFactory.Edge

java.lang.Object
java.lang.Record
org.apache.lucene.spatial3d.geom.GeoPolygonFactory.Edge
Record Components:
startPoint - Start point
endPoint - End point
plane - Plane
isInternal - Internal edge flag
Enclosing class:
GeoPolygonFactory

private static record GeoPolygonFactory.Edge(GeoPoint startPoint, GeoPoint endPoint, SidedPlane plane, boolean isInternal) extends Record
Class representing a single (unused) edge.
  • Field Details

    • startPoint

      private final GeoPoint startPoint
      The field for the startPoint record component.
    • endPoint

      private final GeoPoint endPoint
      The field for the endPoint record component.
    • plane

      private final SidedPlane plane
      The field for the plane record component.
    • isInternal

      private final boolean isInternal
      The field for the isInternal record component.
  • Constructor Details

    • Edge

      private Edge(GeoPoint startPoint, GeoPoint endPoint, SidedPlane plane, boolean isInternal)
      Constructor.
      Parameters:
      startPoint - the edge start point
      endPoint - the edge end point
      plane - the edge plane
      isInternal - true if internal edge
  • Method Details

    • hashCode

      public int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • startPoint

      public GeoPoint startPoint()
      Returns the value of the startPoint record component.
      Returns:
      the value of the startPoint record component
    • endPoint

      public GeoPoint endPoint()
      Returns the value of the endPoint record component.
      Returns:
      the value of the endPoint record component
    • plane

      public SidedPlane plane()
      Returns the value of the plane record component.
      Returns:
      the value of the plane record component
    • isInternal

      public boolean isInternal()
      Returns the value of the isInternal record component.
      Returns:
      the value of the isInternal record component