All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fathzer.games.util.exec.SingleThreadContext Maven / Gradle / Ivy

The newest version!
package com.fathzer.games.util.exec;

import java.util.Collection;

class SingleThreadContext implements ExecutionContext {
	private final T context;
	
	SingleThreadContext(T position) {
		this.context = position;
	}

	@Override
	public T getContext() {
		return this.context;
	}

	@Override
	public void execute(Collection tasks) {
		for (Runnable task : tasks) {
			task.run();
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy