Package org.optaplanner.core.impl.heuristic.selector.common.iterator

## Class AbstractOriginalChangeIterator<Solution_,​Move_ extends Move<Solution_>>

- java.lang.Object
- - org.optaplanner.core.impl.heuristic.selector.common.iterator.SelectionIterator<S>
  - - org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator<Move_>
    - - org.optaplanner.core.impl.heuristic.selector.common.iterator.AbstractOriginalChangeIterator<Solution_,​Move_>

- All Implemented Interfaces:
    `Iterator<Move_>`

      public abstract class AbstractOriginalChangeIterator<Solution_,​Move_ extends Move<Solution_>>
      extends UpcomingSelectionIterator<Move_>

- - ### Field Summary

    - ### Fields inherited from class org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator

      `hasUpcomingSelection, upcomingCreated, upcomingSelection`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `AbstractOriginalChangeIterator​(EntitySelector<Solution_> entitySelector, ValueSelector<Solution_> valueSelector)` |

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected Move_` | `createUpcomingSelection()` |
    `protected abstract Move_` | `newChangeSelection​(Object entity, Object toValue)` |

    - ### Methods inherited from class org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator

      `hasNext, next, noUpcomingSelection, toString`

    - ### Methods inherited from class org.optaplanner.core.impl.heuristic.selector.common.iterator.SelectionIterator

      `remove`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface java.util.Iterator

      `forEachRemaining`

- - ### Constructor Detail

    - #### AbstractOriginalChangeIterator

          public AbstractOriginalChangeIterator​(EntitySelector<Solution_> entitySelector,
                                                ValueSelector<Solution_> valueSelector)

  - ### Method Detail

    - #### createUpcomingSelection

          protected Move_ createUpcomingSelection()

      Specified by:
        `createUpcomingSelection` in class `UpcomingSelectionIterator<Move_ extends Move<Solution_>>`

    - #### newChangeSelection

          protected abstract Move_ newChangeSelection​(Object entity,
                                                      Object toValue)