class TailChainSwapMoveSelectorConfig extends MoveSelectorConfig<TailChainSwapMoveSelectorConfig> {

    public static final String XML_ELEMENT_NAME = "tailChainSwapMoveSelector";

    @XmlElement(name = "entitySelector")
    private EntitySelectorConfig entitySelectorConfig = null;
    /**
     * Uses a valueSelector instead of a secondaryEntitySelector because
     * the secondary entity might not exist if the value is a buoy (= the last entity in a chain)
     * and also because with nearby selection, it's more important that the value is near (instead of the secondary entity).
     */
    @XmlElement(name = "valueSelector")
    private ValueSelectorConfig valueSelectorConfig = null;

    public EntitySelectorConfig getEntitySelectorConfig() {
        return entitySelectorConfig;
    }

    public void setEntitySelectorConfig(EntitySelectorConfig entitySelectorConfig) {
        this.entitySelectorConfig = entitySelectorConfig;
    }

    public ValueSelectorConfig getValueSelectorConfig() {
        return valueSelectorConfig;
    }

    public void setValueSelectorConfig(ValueSelectorConfig valueSelectorConfig) {
        this.valueSelectorConfig = valueSelectorConfig;
    }

    // ************************************************************************
    // With methods
    // ************************************************************************

    public TailChainSwapMoveSelectorConfig withEntitySelectorConfig(EntitySelectorConfig entitySelectorConfig) {
        this.entitySelectorConfig = entitySelectorConfig;
        return this;
    }

    public TailChainSwapMoveSelectorConfig withValueSelectorConfig(ValueSelectorConfig valueSelectorConfig) {
        this.valueSelectorConfig = valueSelectorConfig;
        return this;
    }

    @Override
    public TailChainSwapMoveSelectorConfig inherit(TailChainSwapMoveSelectorConfig inheritedConfig) {
        super.inherit(inheritedConfig);
        entitySelectorConfig = ConfigUtils.inheritConfig(entitySelectorConfig, inheritedConfig.getEntitySelectorConfig());
        valueSelectorConfig = ConfigUtils.inheritConfig(valueSelectorConfig, inheritedConfig.getValueSelectorConfig());
        return this;
    }

    @Override
    public TailChainSwapMoveSelectorConfig copyConfig() {
        return new TailChainSwapMoveSelectorConfig().inherit(this);
    }

    @Override
    public void visitReferencedClasses(Consumer<Class<?>> classVisitor) {
        visitCommonReferencedClasses(classVisitor);
        if (entitySelectorConfig != null) {
            entitySelectorConfig.visitReferencedClasses(classVisitor);
        }
        if (valueSelectorConfig != null) {
            valueSelectorConfig.visitReferencedClasses(classVisitor);
        }
    }

    @Override
    public String toString() {<FILL_FUNCTION_BODY>}

}

        return getClass().getSimpleName() + "(" + entitySelectorConfig + ", " + valueSelectorConfig + ")";
    
<methods>public non-sealed void <init>() ,public void extractLeafMoveSelectorConfigsIntoList(List<MoveSelectorConfig#RAW>) ,public org.optaplanner.core.config.heuristic.selector.common.SelectionCacheType getCacheType() ,public Class<? extends SelectionFilter#RAW> getFilterClass() ,public java.lang.Double getFixedProbabilityWeight() ,public Class<? extends SelectionProbabilityWeightFactory#RAW> getProbabilityWeightFactoryClass() ,public java.lang.Long getSelectedCountLimit() ,public org.optaplanner.core.config.heuristic.selector.common.SelectionOrder getSelectionOrder() ,public Class<? extends SelectionSorter#RAW> getSorterClass() ,public Class<? extends Comparator#RAW> getSorterComparatorClass() ,public org.optaplanner.core.config.heuristic.selector.common.decorator.SelectionSorterOrder getSorterOrder() ,public Class<? extends SelectionSorterWeightFactory#RAW> getSorterWeightFactoryClass() ,public org.optaplanner.core.config.heuristic.selector.move.generic.chained.TailChainSwapMoveSelectorConfig inherit(org.optaplanner.core.config.heuristic.selector.move.generic.chained.TailChainSwapMoveSelectorConfig) ,public void inheritFolded(MoveSelectorConfig<?>) ,public void setCacheType(org.optaplanner.core.config.heuristic.selector.common.SelectionCacheType) ,public void setFilterClass(Class<? extends SelectionFilter#RAW>) ,public void setFixedProbabilityWeight(java.lang.Double) ,public void setProbabilityWeightFactoryClass(Class<? extends SelectionProbabilityWeightFactory#RAW>) ,public void setSelectedCountLimit(java.lang.Long) ,public void setSelectionOrder(org.optaplanner.core.config.heuristic.selector.common.SelectionOrder) ,public void setSorterClass(Class<? extends SelectionSorter#RAW>) ,public void setSorterComparatorClass(Class<? extends Comparator#RAW>) ,public void setSorterOrder(org.optaplanner.core.config.heuristic.selector.common.decorator.SelectionSorterOrder) ,public void setSorterWeightFactoryClass(Class<? extends SelectionSorterWeightFactory#RAW>) ,public org.optaplanner.core.config.heuristic.selector.move.generic.chained.TailChainSwapMoveSelectorConfig withCacheType(org.optaplanner.core.config.heuristic.selector.common.SelectionCacheType) ,public org.optaplanner.core.config.heuristic.selector.move.generic.chained.TailChainSwapMoveSelectorConfig withFilterClass(Class<? extends SelectionFilter#RAW>) ,public org.optaplanner.core.config.heuristic.selector.move.generic.chained.TailChainSwapMoveSelectorConfig withFixedProbabilityWeight(java.lang.Double) ,public org.optaplanner.core.config.heuristic.selector.move.generic.chained.TailChainSwapMoveSelectorConfig withProbabilityWeightFactoryClass(Class<? extends SelectionProbabilityWeightFactory#RAW>) ,public org.optaplanner.core.config.heuristic.selector.move.generic.chained.TailChainSwapMoveSelectorConfig withSelectedCountLimit(java.lang.Long) ,public org.optaplanner.core.config.heuristic.selector.move.generic.chained.TailChainSwapMoveSelectorConfig withSelectionOrder(org.optaplanner.core.config.heuristic.selector.common.SelectionOrder) ,public org.optaplanner.core.config.heuristic.selector.move.generic.chained.TailChainSwapMoveSelectorConfig withSorterClass(Class<? extends SelectionSorter#RAW>) ,public org.optaplanner.core.config.heuristic.selector.move.generic.chained.TailChainSwapMoveSelectorConfig withSorterComparatorClass(Class<? extends Comparator#RAW>) ,public org.optaplanner.core.config.heuristic.selector.move.generic.chained.TailChainSwapMoveSelectorConfig withSorterOrder(org.optaplanner.core.config.heuristic.selector.common.decorator.SelectionSorterOrder) ,public org.optaplanner.core.config.heuristic.selector.move.generic.chained.TailChainSwapMoveSelectorConfig withSorterWeightFactoryClass(Class<? extends SelectionSorterWeightFactory#RAW>) <variables>protected org.optaplanner.core.config.heuristic.selector.common.SelectionCacheType cacheType,protected Class<? extends SelectionFilter#RAW> filterClass,private java.lang.Double fixedProbabilityWeight,protected Class<? extends SelectionProbabilityWeightFactory#RAW> probabilityWeightFactoryClass,protected java.lang.Long selectedCountLimit,protected org.optaplanner.core.config.heuristic.selector.common.SelectionOrder selectionOrder,protected Class<? extends SelectionSorter#RAW> sorterClass,protected Class<? extends Comparator#RAW> sorterComparatorClass,protected org.optaplanner.core.config.heuristic.selector.common.decorator.SelectionSorterOrder sorterOrder,protected Class<? extends SelectionSorterWeightFactory#RAW> sorterWeightFactoryClass