Record Class TrialConfig
java.lang.Object
java.lang.Record
ai.timefold.solver.service.definition.api.TrialConfig
public record TrialConfig(Integer trialDuration, Integer maxExtensions, Integer extensionDuration)
extends Record
Configuration of trial use of the model
- trialDuration - duration in days of the trial period model can be used
- maxExtensions - max number of extensions trial can have
- extensionDuration - duration in days indicating how long trial can be extended for
-
Constructor Summary
ConstructorsConstructorDescriptionTrialConfig(Integer trialDuration, Integer maxExtensions, Integer extensionDuration) Creates an instance of aTrialConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theextensionDurationrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themaxExtensionsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrialDurationrecord component.
-
Constructor Details
-
TrialConfig
Creates an instance of aTrialConfigrecord class.- Parameters:
trialDuration- the value for thetrialDurationrecord componentmaxExtensions- the value for themaxExtensionsrecord componentextensionDuration- the value for theextensionDurationrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
trialDuration
Returns the value of thetrialDurationrecord component.- Returns:
- the value of the
trialDurationrecord component
-
maxExtensions
Returns the value of themaxExtensionsrecord component.- Returns:
- the value of the
maxExtensionsrecord component
-
extensionDuration
Returns the value of theextensionDurationrecord component.- Returns:
- the value of the
extensionDurationrecord component
-