org.optaplanner.core.impl.heuristic.selector.move.factory

## Interface MoveListFactory<Solution_>

- Type Parameters:
    `Solution_` - the solution type, the class with the `PlanningSolution` annotation

      public interface MoveListFactory<Solution_>

  A simple interface to generate a `List` of custom `Move`s.

  For a more powerful version, see `MoveIteratorFactory`.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<? extends Move<Solution_>>` | `createMoveList(Solution_ solution)` When it is called depends on the configured `SelectionCacheType`.

- - ### Method Detail

    - #### createMoveList

          List<? extends Move<Solution_>> createMoveList(Solution_ solution)

      When it is called depends on the configured `SelectionCacheType`.

      It can never support `SelectionCacheType.JUST_IN_TIME`, because it returns a `List`, not an `Iterator`.

      Parameters:
        `solution` - never null, the `PlanningSolution` of which the `Move`s need to be generated
      Returns:
        never null

Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.