CharPredicate.java
net.minecraft.CharPredicate
信息
- 全限定名:net.minecraft.CharPredicate
- 类型:public interface
- 包:net.minecraft
- 源码路径:src/main/java/net/minecraft/CharPredicate.java
- 起始行号:L6
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
boolean test(char value) @ L7
- 方法名:test
- 源码定位:L7
- 返回类型:boolean
- 修饰符:package-private
参数:
- value: char
说明:
TODO
default CharPredicate and(CharPredicate other) @ L9
- 方法名:and
- 源码定位:L9
- 返回类型:CharPredicate
- 修饰符:default
参数:
- other: CharPredicate
说明:
TODO
default CharPredicate negate() @ L14
- 方法名:negate
- 源码定位:L14
- 返回类型:CharPredicate
- 修饰符:default
参数:
- 无
说明:
TODO
default CharPredicate or(CharPredicate other) @ L18
- 方法名:or
- 源码定位:L18
- 返回类型:CharPredicate
- 修饰符:default
参数:
- other: CharPredicate
说明:
TODO
代码
@FunctionalInterface
public interface CharPredicate {
boolean test(char value);
default CharPredicate and(CharPredicate other) {
Objects.requireNonNull(other);
return value -> this.test(value) && other.test(value);
}
default CharPredicate negate() {
return value -> !this.test(value);
}
default CharPredicate or(CharPredicate other) {
Objects.requireNonNull(other);
return value -> this.test(value) || other.test(value);
}
}引用的其他类
- 无