Record Class MapsConfiguration
java.lang.Object
java.lang.Record
ai.timefold.solver.service.definition.api.configuration.MapsConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionMapsConfiguration(String provider) MapsConfiguration(String provider, String location, Double maxDistanceFromRoad, String transportType, Boolean useTraffic) Creates an instance of aMapsConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.Returns the value of themaxDistanceFromRoadrecord component.override(MapsConfiguration configuration) provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportTyperecord component.Returns the value of theuseTrafficrecord component.withLocation(String location) withMaxDistanceFromRoad(Double maxDistanceFromRoad) withTransportType(String transportType) withUseTraffic(Boolean useTraffic)
-
Constructor Details
-
MapsConfiguration
-
MapsConfiguration
public MapsConfiguration(String provider, String location, Double maxDistanceFromRoad, String transportType, Boolean useTraffic) Creates an instance of aMapsConfigurationrecord class.- Parameters:
provider- the value for theproviderrecord componentlocation- the value for thelocationrecord componentmaxDistanceFromRoad- the value for themaxDistanceFromRoadrecord componenttransportType- the value for thetransportTyperecord componentuseTraffic- the value for theuseTrafficrecord component
-
-
Method Details
-
withLocation
-
withMaxDistanceFromRoad
-
withTransportType
-
withUseTraffic
-
override
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
maxDistanceFromRoad
Returns the value of themaxDistanceFromRoadrecord component.- Returns:
- the value of the
maxDistanceFromRoadrecord component
-
transportType
Returns the value of thetransportTyperecord component.- Returns:
- the value of the
transportTyperecord component
-
useTraffic
Returns the value of theuseTrafficrecord component.- Returns:
- the value of the
useTrafficrecord component
-