Module org.apache.lucene.spatial3d
Package org.apache.lucene.spatial3d.geom
Record Class GeoStandardPath.DistancePair
java.lang.Object
java.lang.Record
org.apache.lucene.spatial3d.geom.GeoStandardPath.DistancePair
- Enclosing class:
GeoStandardPath
private static record GeoStandardPath.DistancePair(double pathCenterDistance, double distanceAlongPath)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleThe field for thedistanceAlongPathrecord component.private final doubleThe field for thepathCenterDistancerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDistancePair(double pathCenterDistance, double distanceAlongPath) Creates an instance of aDistancePairrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thedistanceAlongPathrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thepathCenterDistancerecord component.toString()Returns a string representation of this record class.
-
Field Details
-
pathCenterDistance
private final double pathCenterDistanceThe field for thepathCenterDistancerecord component. -
distanceAlongPath
private final double distanceAlongPathThe field for thedistanceAlongPathrecord component.
-
-
Constructor Details
-
DistancePair
private DistancePair(double pathCenterDistance, double distanceAlongPath) Creates an instance of aDistancePairrecord class.- Parameters:
pathCenterDistance- the value for thepathCenterDistancerecord componentdistanceAlongPath- the value for thedistanceAlongPathrecord component
-
-
Method Details
-
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. -
hashCode
public final 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. All components in this record class are compared with '=='. -
pathCenterDistance
public double pathCenterDistance()Returns the value of thepathCenterDistancerecord component.- Returns:
- the value of the
pathCenterDistancerecord component
-
distanceAlongPath
public double distanceAlongPath()Returns the value of thedistanceAlongPathrecord component.- Returns:
- the value of the
distanceAlongPathrecord component
-