class AbstractTabuSizeStrategy<Solution_> implements TabuSizeStrategy<Solution_> {

    protected int protectTabuSizeCornerCases(int totalSize, int tabuSize) {<FILL_FUNCTION_BODY>}

}

        if (tabuSize < 1) {
            // At least one object should be tabu, even if totalSize is 0
            tabuSize = 1;
        } else if (tabuSize > totalSize - 1) {
            // At least one object should not be tabu
            tabuSize = totalSize - 1;
        }
        return tabuSize;
    
<no_super_class>