
com.fathzer.games.util.exec.SingleThreadContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of games-core Show documentation
Show all versions of games-core Show documentation
A core library to help implement two players games.
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