Module org.apache.lucene.spatial3d
Package org.apache.lucene.spatial3d.geom
Record Class GeoPolygonFactory.Edge
java.lang.Object
java.lang.Record
org.apache.lucene.spatial3d.geom.GeoPolygonFactory.Edge
- Record Components:
startPoint- Start pointendPoint- End pointplane- PlaneisInternal- 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 Summary
FieldsModifier and TypeFieldDescriptionprivate final GeoPointThe field for theendPointrecord component.private final booleanThe field for theisInternalrecord component.private final SidedPlaneThe field for theplanerecord component.private final GeoPointThe field for thestartPointrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEdge(GeoPoint startPoint, GeoPoint endPoint, SidedPlane plane, boolean isInternal) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionendPoint()Returns the value of theendPointrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.booleanReturns the value of theisInternalrecord component.plane()Returns the value of theplanerecord component.Returns the value of thestartPointrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
startPoint
The field for thestartPointrecord component. -
endPoint
The field for theendPointrecord component. -
plane
The field for theplanerecord component. -
isInternal
private final boolean isInternalThe field for theisInternalrecord component.
-
-
Constructor Details
-
Edge
Constructor.- Parameters:
startPoint- the edge start pointendPoint- the edge end pointplane- the edge planeisInternal- 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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
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. -
startPoint
Returns the value of thestartPointrecord component.- Returns:
- the value of the
startPointrecord component
-
endPoint
Returns the value of theendPointrecord component.- Returns:
- the value of the
endPointrecord component
-
plane
Returns the value of theplanerecord component.- Returns:
- the value of the
planerecord component
-
isInternal
public boolean isInternal()Returns the value of theisInternalrecord component.- Returns:
- the value of the
isInternalrecord component
-