com.g2forge.alexandria.java.function.HF Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ax-java Show documentation
Show all versions of ax-java Show documentation
Standard Java library and the basis of the ${alexandria.name} project.
package com.g2forge.alexandria.java.function;
import com.g2forge.alexandria.java.marker.Helpers;
import lombok.experimental.UtilityClass;
@Helpers
@UtilityClass
public class HF {
public static IConsumer1 of(IConsumer1 consumer) {
return IConsumer1.create(consumer);
}
public static IConsumer2 of(IConsumer2 consumer) {
return IConsumer2.create(consumer);
}
public static IConsumer3 of(IConsumer3 consumer) {
return IConsumer3.create(consumer);
}
public static IPredicate1 of(IPredicate1 predicate) {
return IPredicate1.create(predicate);
}
public static IPredicate2 of(IPredicate2 predicate) {
return IPredicate2.create(predicate);
}
public static IPredicate3 of(IPredicate3 predicate) {
return IPredicate3.create(predicate);
}
public static IThrowFunction1 of(IThrowFunction1 function) {
return IThrowFunction1.create(function);
}
public static IThrowSupplier of(IThrowSupplier function) {
return IThrowSupplier.create(function);
}
public static IFunction1 of(IFunction1 function) {
return IFunction1.create(function);
}
public static IFunction2 of(IFunction2 function) {
return IFunction2.create(function);
}
public static IFunction3 of(IFunction3 function) {
return IFunction3.create(function);
}
public static IRunnable of(IRunnable runnable) {
return IRunnable.create(runnable);
}
public static ISupplier of(ISupplier supplier) {
return ISupplier.create(supplier);
}
}