Class SubPillarConfigPolicy
java.lang.Object
org.optaplanner.core.config.heuristic.selector.entity.pillar.SubPillarConfigPolicy
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Comparator<?>
int
int
int
hashCode()
boolean
static SubPillarConfigPolicy
sequential
(int minSize, int maxSize, Comparator<?> entityComparator) static SubPillarConfigPolicy
sequentialUnlimited
(Comparator<?> entityComparator) static SubPillarConfigPolicy
static SubPillarConfigPolicy
withSubpillars
(int minSize, int maxSize) static SubPillarConfigPolicy
-
Method Details
-
withoutSubpillars
-
withSubpillars
-
withSubpillarsUnlimited
-
sequential
public static SubPillarConfigPolicy sequential(int minSize, int maxSize, Comparator<?> entityComparator) -
sequentialUnlimited
-
isSubPillarEnabled
public boolean isSubPillarEnabled() -
getMinimumSubPillarSize
public int getMinimumSubPillarSize()- Returns:
- Less than 1 when
isSubPillarEnabled()
false.
-
getMaximumSubPillarSize
public int getMaximumSubPillarSize()- Returns:
- Less than 1 when
isSubPillarEnabled()
false.
-
getEntityComparator
- Returns:
- Not null if the subpillars are to be treated as sequential. Always null if
subPillarEnabled
is false.
-
equals
-
hashCode
public int hashCode()
-