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

com.g2forge.alexandria.java.function.HF Maven / Gradle / Ivy

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