Record Class RunConfiguration
java.lang.Object
java.lang.Record
ai.timefold.solver.service.definition.api.domain.RunConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionRunConfiguration(Integer maxThreadCount, SolverTerminationConfig termination) RunConfiguration(String name) RunConfiguration(String name, SolverTerminationConfig termination) RunConfiguration(String name, SolverTerminationConfig termination, Integer maxThreadCount, Set<String> tags) Creates an instance of aRunConfigurationrecord 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.@Positive IntegerReturns the value of themaxThreadCountrecord component.@Size(min=0,max=255) Stringname()Returns the value of thenamerecord component.override(RunConfiguration configuration) tags()Returns the value of thetagsrecord component.Returns the value of theterminationrecord component.final StringtoString()Returns a string representation of this record class.withTermination(SolverTerminationConfig termination) Returns a copy of this instance with given termination.
-
Constructor Details
-
RunConfiguration
public RunConfiguration(String name, SolverTerminationConfig termination, Integer maxThreadCount, Set<String> tags) Creates an instance of aRunConfigurationrecord class.- Parameters:
name- the value for thenamerecord componenttermination- the value for theterminationrecord componentmaxThreadCount- the value for themaxThreadCountrecord componenttags- the value for thetagsrecord component
-
RunConfiguration
-
RunConfiguration
-
RunConfiguration
-
-
Method Details
-
withTermination
Returns a copy of this instance with given termination.- Parameters:
termination- the termination configuration to set in the created copy- Returns:
- a copy of this instance with given termination, never null
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
termination
Returns the value of theterminationrecord component.- Returns:
- the value of the
terminationrecord component
-
maxThreadCount
Returns the value of themaxThreadCountrecord component.- Returns:
- the value of the
maxThreadCountrecord component
-
tags
-