Record Class VariableUpdaterInfo<Solution_>
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.domain.variable.declarative.VariableUpdaterInfo<Solution_>
@NullMarked
public record VariableUpdaterInfo<Solution_>(VariableMetaModel<Solution_,?,?> id, int groupId, DeclarativeShadowVariableDescriptor<Solution_> variableDescriptor, @Nullable ShadowVariableLoopedVariableDescriptor<Solution_> shadowVariableLoopedDescriptor, MemberAccessor memberAccessor, Function<Object,Object> calculator)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionVariableUpdaterInfo(VariableMetaModel<Solution_, ?, ?> id, int groupId, DeclarativeShadowVariableDescriptor<Solution_> variableDescriptor, @Nullable ShadowVariableLoopedVariableDescriptor<Solution_> shadowVariableLoopedDescriptor, MemberAccessor memberAccessor, Function<Object, Object> calculator) Creates an instance of aVariableUpdaterInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecalculatorrecord component.final booleanIndicates whether some other object is "equal to" this one.intgroupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thememberAccessorrecord component.@Nullable ShadowVariableLoopedVariableDescriptor<Solution_>Returns the value of theshadowVariableLoopedDescriptorrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevariableDescriptorrecord component.withGroupId(int groupId)
-
Constructor Details
-
VariableUpdaterInfo
public VariableUpdaterInfo(VariableMetaModel<Solution_, ?, ?> id, int groupId, DeclarativeShadowVariableDescriptor<Solution_> variableDescriptor, @Nullable ShadowVariableLoopedVariableDescriptor<Solution_> shadowVariableLoopedDescriptor, MemberAccessor memberAccessor, Function<Object, Object> calculator) Creates an instance of aVariableUpdaterInforecord class.- Parameters:
id- the value for theidrecord componentgroupId- the value for thegroupIdrecord componentvariableDescriptor- the value for thevariableDescriptorrecord componentshadowVariableLoopedDescriptor- the value for theshadowVariableLoopedDescriptorrecord componentmemberAccessor- the value for thememberAccessorrecord componentcalculator- the value for thecalculatorrecord component
-
-
Method Details
-
withGroupId
-
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
groupId
public int groupId()Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
variableDescriptor
Returns the value of thevariableDescriptorrecord component.- Returns:
- the value of the
variableDescriptorrecord component
-
shadowVariableLoopedDescriptor
Returns the value of theshadowVariableLoopedDescriptorrecord component.- Returns:
- the value of the
shadowVariableLoopedDescriptorrecord component
-
memberAccessor
Returns the value of thememberAccessorrecord component.- Returns:
- the value of the
memberAccessorrecord component
-
calculator
Returns the value of thecalculatorrecord component.- Returns:
- the value of the
calculatorrecord component
-