package org.warp.commonutils.functional; import java.util.function.Consumer; import java.util.function.Function; import org.warp.commonutils.functional.Unchecked.UncheckedConsumer; public class Generic { public static Function function(Function fnc) { return (Function) fnc; } public static Consumer consumer(Consumer fnc) { return (Consumer) fnc; } public static UncheckedConsumer consumerExc(UncheckedConsumer fnc) { return (UncheckedConsumer) fnc; } }