@Override
    public void constructCache(DefaultSolverScope solverScope) {
        long childSize = childMoveSelector.getSize();
        if (childSize > (long) Integer.MAX_VALUE) {
            throw new IllegalStateException("The selector (" + this
                    + ") has a childMoveSelector (" + childMoveSelector
                    + ") with childSize (" + childSize
                    + ") which is higher than Integer.MAX_VALUE.");
        }
        cachedMoveList = new ArrayList<>((int) childSize);
        childMoveSelector.iterator().forEachRemaining(cachedMoveList::add);
        logger.trace("    Created cachedMoveList: size ({}), moveSelector ({}).",
                cachedMoveList.size(), this);
    }
@Override
    public void constructCache(DefaultSolverScope solverScope) {
        long childSize = childMoveSelector.getSize();
        if (childSize > (long) Integer.MAX_VALUE) {
            throw new IllegalStateException("The selector (" + this
                    + ") has a childMoveSelector (" + childMoveSelector
                    + ") with childSize (" + childSize
                    + ") which is higher than Integer.MAX_VALUE.");
        }
        cachedMoveList = new ArrayList<>((int) childSize);
        childMoveSelector.iterator().forEachRemaining(cachedMoveList::add);
        logger.trace("    Created cachedMoveList: size ({}), moveSelector ({}).",
                cachedMoveList.size(), this);
    }
@ Override public void constructCache ( DefaultSolverScope solverScope ) { long childSize = childMoveSelector . getSize ( ) ; if ( childSize > ( long ) Integer . MAX_VALUE ) { throw new IllegalStateException ( "The selector (" + this + ") has a childMoveSelector (" + childMoveSelector + ") with childSize (" + childSize + ") which is higher than Integer.MAX_VALUE." ) ; } cachedMoveList = new ArrayList <> ( ( int ) childSize ) ; childMoveSelector . iterator ( ) . forEachRemaining ( cachedMoveList :: add ) ; logger . trace ( "    Created cachedMoveList: size ({}), moveSelector ({})." , cachedMoveList . size ( ) , this ) ; }
************************************************************************
************************************************************************