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

com.github.thorbenkuck.network.pipeline.RunnableWrapper Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy