Record Class RouteFactorCalibration.MeasuredPair
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.geo.RouteFactorCalibration.MeasuredPair
- Record Components:
regionA- region of one metro; may benullregionB- region of the other metro; may benulldistanceKm- great-circle distance between the metros' coordinatesmeasuredRoundTripMs- Fabric'sconnectedMetros.avgLatencyfor the pair (round trip)
- Enclosing class:
RouteFactorCalibration
-
Constructor Summary
ConstructorsConstructorDescriptionMeasuredPair(Region regionA, Region regionB, double distanceKm, double measuredRoundTripMs) Creates an instance of aMeasuredPairrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thedistanceKmrecord 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 themeasuredRoundTripMsrecord component.regionA()Returns the value of theregionArecord component.regionB()Returns the value of theregionBrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MeasuredPair
Creates an instance of aMeasuredPairrecord class.- Parameters:
regionA- the value for theregionArecord componentregionB- the value for theregionBrecord componentdistanceKm- the value for thedistanceKmrecord componentmeasuredRoundTripMs- the value for themeasuredRoundTripMsrecord 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. -
regionA
-
regionB
-
distanceKm
public double distanceKm()Returns the value of thedistanceKmrecord component.- Returns:
- the value of the
distanceKmrecord component
-
measuredRoundTripMs
public double measuredRoundTripMs()Returns the value of themeasuredRoundTripMsrecord component.- Returns:
- the value of the
measuredRoundTripMsrecord component
-