Record Class ValueRangeRecorderId
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.heuristic.selector.common.ValueRangeRecorderId
-
Constructor Summary
ConstructorsConstructorDescriptionValueRangeRecorderId(String recorderId, boolean basicVariable) Creates an instance of aValueRangeRecorderIdrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thebasicVariablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therecorderIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValueRangeRecorderId
Creates an instance of aValueRangeRecorderIdrecord class.- Parameters:
recorderId- the value for therecorderIdrecord componentbasicVariable- the value for thebasicVariablerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
recorderId
Returns the value of therecorderIdrecord component.- Returns:
- the value of the
recorderIdrecord component
-
basicVariable
public boolean basicVariable()Returns the value of thebasicVariablerecord component.- Returns:
- the value of the
basicVariablerecord component
-