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 double
The field for thedistanceAlongPath
record component.private final double
The field for thepathCenterDistance
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DistancePair
(double pathCenterDistance, double distanceAlongPath) Creates an instance of aDistancePair
record class. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of thedistanceAlongPath
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.double
Returns the value of thepathCenterDistance
record component.toString()
Returns a string representation of this record class.
-
Field Details
-
pathCenterDistance
private final double pathCenterDistanceThe field for thepathCenterDistance
record component. -
distanceAlongPath
private final double distanceAlongPathThe field for thedistanceAlongPath
record component.
-
-
Constructor Details
-
DistancePair
private DistancePair(double pathCenterDistance, double distanceAlongPath) Creates an instance of aDistancePair
record class.- Parameters:
pathCenterDistance
- the value for thepathCenterDistance
record componentdistanceAlongPath
- the value for thedistanceAlongPath
record 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 thepathCenterDistance
record component.- Returns:
- the value of the
pathCenterDistance
record component
-
distanceAlongPath
public double distanceAlongPath()Returns the value of thedistanceAlongPath
record component.- Returns:
- the value of the
distanceAlongPath
record component
-