![JAR search and dependency download from the Maven repository](/logo.png)
com.strobel.functions.Functions Maven / Gradle / Ivy
package com.strobel.functions;
import com.strobel.core.VerifyArgument;
public final class Functions {
public static Function ofSupplier(final Supplier supplier) {
VerifyArgument.notNull(supplier, "supplier");
return new Function() {
@Override
public R apply(final T input) {
return supplier.get();
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy