新增 Ref

This commit is contained in:
2024-03-03 01:06:56 +08:00
parent 96fb846864
commit 725283c829
9 changed files with 433 additions and 0 deletions

View File

@@ -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;
}
}

View File

@@ -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);
}