com.github.thorbenkuck.network.pipeline.RunnableWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easy-net Show documentation
Show all versions of easy-net Show documentation
An EventStream driven, simple to use Client/Server framework
package com.github.thorbenkuck.network.pipeline;
import java.util.function.Function;
public class RunnableWrapper implements Function {
private final Runnable runnable;
public RunnableWrapper(Runnable runnable) {
this.runnable = runnable;
}
@Override
public T apply(T t) {
runnable.run();
return t;
}
}