java.lang.Object
org.optaplanner.core.config.heuristic.selector.entity.pillar.SubPillarConfigPolicy

public final class SubPillarConfigPolicy extends Object
  • Method Details

    • withoutSubpillars

      public static SubPillarConfigPolicy withoutSubpillars()
    • withSubpillars

      public static SubPillarConfigPolicy withSubpillars(int minSize, int maxSize)
    • withSubpillarsUnlimited

      public static SubPillarConfigPolicy withSubpillarsUnlimited()
    • sequential

      public static SubPillarConfigPolicy sequential(int minSize, int maxSize, Comparator<?> entityComparator)
    • sequentialUnlimited

      public static SubPillarConfigPolicy sequentialUnlimited(Comparator<?> entityComparator)
    • 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

      public Comparator<?> getEntityComparator()
      Returns:
      Not null if the subpillars are to be treated as sequential. Always null if subPillarEnabled is false.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object