Record Class DefaultMoveStreamFactory.NodeSharingSupportFunctions<Solution_,Entity_,Value_>
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.neighborhood.stream.DefaultMoveStreamFactory.NodeSharingSupportFunctions<Solution_,Entity_,Value_>
- Enclosing class:
- DefaultMoveStreamFactory<Solution_>
public static record DefaultMoveStreamFactory.NodeSharingSupportFunctions<Solution_,Entity_,Value_> (PlanningVariableMetaModel<Solution_,Entity_,Value_> variableMetaModel, BiNeighborhoodsPredicate<Solution_,Entity_,Value_> differentValueFilter, BiNeighborhoodsPredicate<Solution_,Entity_,Value_> valueInRangeFilter)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNodeSharingSupportFunctions(PlanningVariableMetaModel<Solution_, Entity_, Value_> variableMetaModel) NodeSharingSupportFunctions(PlanningVariableMetaModel<Solution_, Entity_, Value_> variableMetaModel, BiNeighborhoodsPredicate<Solution_, Entity_, Value_> differentValueFilter, BiNeighborhoodsPredicate<Solution_, Entity_, Value_> valueInRangeFilter) Creates an instance of aNodeSharingSupportFunctionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedifferentValueFilterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thevalueInRangeFilterrecord component.Returns the value of thevariableMetaModelrecord component.
-
Constructor Details
-
NodeSharingSupportFunctions
public NodeSharingSupportFunctions(PlanningVariableMetaModel<Solution_, Entity_, Value_> variableMetaModel) -
NodeSharingSupportFunctions
public NodeSharingSupportFunctions(PlanningVariableMetaModel<Solution_, Entity_, Value_> variableMetaModel, BiNeighborhoodsPredicate<Solution_, Entity_, Value_> differentValueFilter, BiNeighborhoodsPredicate<Solution_, Entity_, Value_> valueInRangeFilter) Creates an instance of aNodeSharingSupportFunctionsrecord class.- Parameters:
variableMetaModel- the value for thevariableMetaModelrecord componentdifferentValueFilter- the value for thedifferentValueFilterrecord componentvalueInRangeFilter- the value for thevalueInRangeFilterrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
variableMetaModel
Returns the value of thevariableMetaModelrecord component.- Returns:
- the value of the
variableMetaModelrecord component
-
differentValueFilter
Returns the value of thedifferentValueFilterrecord component.- Returns:
- the value of the
differentValueFilterrecord component
-
valueInRangeFilter
Returns the value of thevalueInRangeFilterrecord component.- Returns:
- the value of the
valueInRangeFilterrecord component
-