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 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 a BiMoveStreamContext record class.
      Parameters:
      neighborhoodSession - the value for the neighborhoodSession record component
      leftDataset - the value for the leftDataset record component
      rightDataset - the value for the rightDataset record component
      moveConstructor - the value for the moveConstructor record component
  • Method Details

    • getLeftDatasetInstance

      public UniLeftDatasetInstance<Solution_,A> getLeftDatasetInstance()
    • getRightDatasetInstance

      public UniRightDatasetInstance<Solution_,A,B> getRightDatasetInstance()
    • buildMove

      public Move<Solution_> buildMove(@Nullable A left, @Nullable B right)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • neighborhoodSession

      public DefaultNeighborhoodSession<Solution_> neighborhoodSession()
      Returns the value of the neighborhoodSession record component.
      Returns:
      the value of the neighborhoodSession record component
    • leftDataset

      public UniLeftDataset<Solution_,A> leftDataset()
      Returns the value of the leftDataset record component.
      Returns:
      the value of the leftDataset record component
    • rightDataset

      public UniRightDataset<Solution_,A,B> rightDataset()
      Returns the value of the rightDataset record component.
      Returns:
      the value of the rightDataset record component
    • moveConstructor

      public BiMoveConstructor<Solution_,A,B> moveConstructor()
      Returns the value of the moveConstructor record component.
      Returns:
      the value of the moveConstructor record component