forked from plusone/plusone-commons
新增 Ref
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package xyz.zhouxy.plusone.commons.function;
|
||||
|
||||
import com.google.common.annotations.Beta;
|
||||
|
||||
@Beta
|
||||
@FunctionalInterface
|
||||
public interface BoolUnaryOperator {
|
||||
boolean applyAsBool(boolean operand);
|
||||
|
||||
static BoolUnaryOperator not() {
|
||||
return b -> !b;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package xyz.zhouxy.plusone.commons.function;
|
||||
|
||||
import com.google.common.annotations.Beta;
|
||||
|
||||
@Beta
|
||||
@FunctionalInterface
|
||||
public interface CharUnaryOperator {
|
||||
char applyAsChar(char operand);
|
||||
}
|
||||
Reference in New Issue
Block a user