Package org.optaplanner.core.api.domain.entity

## Interface PinningFilter<Solution_,​Entity_>

- Type Parameters:
    `Solution_` - the solution type, the class with the `PlanningSolution` annotation
    `Entity_` - the entity type, the class with the `PlanningEntity` annotation
  All Known Subinterfaces:
    `PlanningEntity.NullPinningFilter`

      public interface PinningFilter<Solution_,​Entity_>

  Decides on accepting or discarding a `PlanningEntity`. A pinned `PlanningEntity` is never used in a `Move`.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `accept​(Solution_ solution, Entity_ entity)` |

- - ### Method Detail

    - #### accept

          boolean accept​(Solution_ solution,
                         Entity_ entity)

      Parameters:
        `solution` - working solution to which the entity belongs
        `entity` - never null, a `PlanningEntity`
      Returns:
        true if the entity it is pinned, false if the entity is movable.