cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/cloudlet/CloudletSchedulerAbstract.java
private int removeFinishedCloudletsFromExecutionListAndAddToFinishedList() {
        final List<CloudletExecutionInfo> finishedCloudlets
            = cloudletExecList.stream()
            .filter(c -> c.getCloudlet().isFinished())
            .collect(toList());

        for (final CloudletExecutionInfo c : finishedCloudlets) {
            removeCloudletFromExecListAndAddToFinishedList(c);
        }

        return finishedCloudlets.size();
    }
/**
     * Removes finished cloudlets from the
     * {@link #getCloudletExecList() list of cloudlets to execute}
     * and adds them to finished list.
     *
     * @return the number of finished cloudlets removed from the
     * {@link #getCloudletExecList() execution list}
     */
Removes finished cloudlets from the
#getCloudletExecList() list of cloudlets to execute
and adds them to finished list.

@return the number of finished cloudlets removed from the
#getCloudletExecList() execution list
Removes finished cloudlets from the #getCloudletExecList () list of cloudlets to execute and adds them to finished list . @return the number of finished cloudlets removed from the #getCloudletExecList () execution list
private int removeFinishedCloudletsFromExecutionListAndAddToFinishedList() {
        final List<CloudletExecutionInfo> finishedCloudlets
            = cloudletExecList.stream()
            .filter(c -> c.getCloudlet().isFinished())
            .collect(toList());
        for (final CloudletExecutionInfo c : finishedCloudlets) {
            removeCloudletFromExecListAndAddToFinishedList(c);
        }
        return finishedCloudlets.size();
    }
private int removeFinishedCloudletsFromExecutionListAndAddToFinishedList ( ) { final List < CloudletExecutionInfo > finishedCloudlets = cloudletExecList . stream ( ) . filter ( c -> c . getCloudlet ( ) . isFinished ( ) ) . collect ( toList ( ) ) ; for ( final CloudletExecutionInfo c : finishedCloudlets ) { removeCloudletFromExecListAndAddToFinishedList ( c ) ; } return finishedCloudlets . size ( ) ; }
Removes finished cloudlets from the
 {@link #getCloudletExecList() list of cloudlets to execute}
 and adds them to finished list.
Removes finished cloudlets from the { @link #getCloudletExecList () list of cloudlets to execute } and adds them to finished list .