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 GeoPoint
The field for theendPoint
record component.private final boolean
The field for theisInternal
record component.private final SidedPlane
The field for theplane
record component.private final GeoPoint
The field for thestartPoint
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Edge
(GeoPoint startPoint, GeoPoint endPoint, SidedPlane plane, boolean isInternal) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionendPoint()
Returns the value of theendPoint
record component.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisInternal
record component.plane()
Returns the value of theplane
record component.Returns the value of thestartPoint
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
startPoint
The field for thestartPoint
record component. -
endPoint
The field for theendPoint
record component. -
plane
The field for theplane
record component. -
isInternal
private final boolean isInternalThe field for theisInternal
record 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 thestartPoint
record component.- Returns:
- the value of the
startPoint
record component
-
endPoint
Returns the value of theendPoint
record component.- Returns:
- the value of the
endPoint
record component
-
plane
Returns the value of theplane
record component.- Returns:
- the value of the
plane
record component
-
isInternal
public boolean isInternal()Returns the value of theisInternal
record component.- Returns:
- the value of the
isInternal
record component
-