me.xethh.libs.toolkits.stopWatchEx.StopWatchExFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons Show documentation
Show all versions of commons Show documentation
Library of common used tools - major focus on common tools
package me.xethh.libs.toolkits.stopWatchEx;
import java.util.function.Supplier;
public class StopWatchExFactory {
public StopWatchExFactory(Supplier stopWatchExSupplier){
this.builder = stopWatchExSupplier;
}
private Supplier builder;
public StopWatchEx getNewOne(){
return builder.get();
}
public static StopWatchExFactory get(Supplier builder){
return new StopWatchExFactory(builder);
}
}