Record Class AccessibilityIndex.AccessibilityResult
java.lang.Object
java.lang.Record
org.episteme.social.geography.AccessibilityIndex.AccessibilityResult
- Enclosing class:
AccessibilityIndex
-
Constructor Summary
ConstructorsConstructorDescriptionAccessibilityResult(GeodeticCoordinate location, Map<String, Duration> travelTimesToNearest, double compositeScore, String accessibilityLevel) Creates an instance of aAccessibilityResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessibilityLevelrecord component.doubleReturns the value of thecompositeScorerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetravelTimesToNearestrecord component.
-
Constructor Details
-
AccessibilityResult
public AccessibilityResult(GeodeticCoordinate location, Map<String, Duration> travelTimesToNearest, double compositeScore, String accessibilityLevel) Creates an instance of aAccessibilityResultrecord class.- Parameters:
location- the value for thelocationrecord componenttravelTimesToNearest- the value for thetravelTimesToNearestrecord componentcompositeScore- the value for thecompositeScorerecord componentaccessibilityLevel- the value for theaccessibilityLevelrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
travelTimesToNearest
-
compositeScore
public double compositeScore()Returns the value of thecompositeScorerecord component.- Returns:
- the value of the
compositeScorerecord component
-
accessibilityLevel
Returns the value of theaccessibilityLevelrecord component.- Returns:
- the value of the
accessibilityLevelrecord component
-