public void assign(WorkerSlot slot, Collection<ExecutorDetails> executors) {
        for (ExecutorDetails executor : executors) {
            this.executorToSlot.put(executor, slot);
        }
    }
public void assign ( WorkerSlot slot , Collection < ExecutorDetails > executors ) { for ( ExecutorDetails executor : executors ) { this . executorToSlot . put ( executor , slot ) ; } }
Assign the slot to executors.