com.github.andyshao.util.function.FunctionOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Gear Show documentation
Show all versions of Gear Show documentation
Enhance and formating the coding of JDK
The newest version!
package com.github.andyshao.util.function;
import com.github.andyshao.lang.Convert;
import java.util.function.Function;
/**
*
* Title:
* Descript:
* Copyright: Copryright(c) Nov 1, 2019
* Encoding: UNIX UTF-8
*
* @author Andy.Shao
*
*/
public final class FunctionOperation {
private FunctionOperation() {
throw new AssertionError("Does not support construction");
}
/**
* lambda
* @param function {@link Function}
* @return {@link Function}
* @param left type
* @param right type
*/
public static final Function lambda(Function function) {
return function;
}
/**
* function
* @param convert {@link Convert}
* @return {@link Function}
* @param left type
* @param right type
*/
public static final Function function(Convert convert) {
return convert::convert;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy