Class AbstractValueSelector<Solution_>

java.lang.Object
org.optaplanner.core.impl.heuristic.selector.AbstractSelector<Solution_>
org.optaplanner.core.impl.heuristic.selector.value.AbstractValueSelector<Solution_>
All Implemented Interfaces:
EventListener, Selector<Solution_>, ValueSelector<Solution_>, PhaseLifecycleListener<Solution_>, SolverLifecycleListener<Solution_>
Direct Known Subclasses:
AbstractCachingValueSelector, AssignedValueSelector, DowncastingValueSelector, EntityDependentSortingValueSelector, FilteringValueSelector, FromEntityPropertyValueSelector, FromSolutionPropertyValueSelector, InitializedValueSelector, MimicRecordingValueSelector, MimicReplayingValueSelector, NearEntityNearbyValueSelector, ProbabilityValueSelector, ReinitializeVariableValueSelector, SelectedCountLimitValueSelector, UnassignedValueSelector

public abstract class AbstractValueSelector<Solution_> extends AbstractSelector<Solution_> implements ValueSelector<Solution_>
Abstract superclass for ValueSelector. It is expected that if two instances share the same properties, they are equal to one another. This is necessary for proper performance of caches, such as pillar cache or nearby distance matrix cache.
See Also:
  • Constructor Details

    • AbstractValueSelector

      public AbstractValueSelector()
  • Method Details

    • equals

      public abstract boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public abstract int hashCode()
      Overrides:
      hashCode in class Object