Record Class BiMoveStreamContext<Solution_,A,B>
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.neighborhood.stream.BiMoveStreamContext<Solution_,A,B>
@NullMarked
public record BiMoveStreamContext<Solution_,A,B> (DefaultNeighborhoodSession<Solution_> neighborhoodSession, UniLeftDataset<Solution_,A> leftDataset, UniRightDataset<Solution_,A,B> rightDataset, BiMoveConstructor<Solution_,A,B> moveConstructor)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBiMoveStreamContext(DefaultNeighborhoodSession<Solution_> neighborhoodSession, UniLeftDataset<Solution_, A> leftDataset, UniRightDataset<Solution_, A, B> rightDataset, BiMoveConstructor<Solution_, A, B> moveConstructor) Creates an instance of aBiMoveStreamContextrecord 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.Returns the value of theleftDatasetrecord component.Returns the value of themoveConstructorrecord component.Returns the value of theneighborhoodSessionrecord component.Returns the value of therightDatasetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BiMoveStreamContext
public BiMoveStreamContext(DefaultNeighborhoodSession<Solution_> neighborhoodSession, UniLeftDataset<Solution_, A> leftDataset, UniRightDataset<Solution_, A, B> rightDataset, BiMoveConstructor<Solution_, A, B> moveConstructor) Creates an instance of aBiMoveStreamContextrecord class.- Parameters:
neighborhoodSession- the value for theneighborhoodSessionrecord componentleftDataset- the value for theleftDatasetrecord componentrightDataset- the value for therightDatasetrecord componentmoveConstructor- the value for themoveConstructorrecord component
-
-
Method Details
-
getLeftDatasetInstance
-
getRightDatasetInstance
-
buildMove
-
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). -
neighborhoodSession
Returns the value of theneighborhoodSessionrecord component.- Returns:
- the value of the
neighborhoodSessionrecord component
-
leftDataset
Returns the value of theleftDatasetrecord component.- Returns:
- the value of the
leftDatasetrecord component
-
rightDataset
Returns the value of therightDatasetrecord component.- Returns:
- the value of the
rightDatasetrecord component
-
moveConstructor
Returns the value of themoveConstructorrecord component.- Returns:
- the value of the
moveConstructorrecord component
-