Predicate: 断⾔型接⼝:有⼊参,有返回值,返回值类型确定是boolean
T:⼊参类型;出参类型是Boolean
调⽤⽅法:boolean test(T t);
T:⼊参类型;出参类型是Boolean
调⽤⽅法:boolean test(T t);
@FunctionalInterface
public interface Predicate<T> {
boolean test(T t);
} 本文作者为DBC,转载请注明。
@FunctionalInterface
public interface Predicate<T> {
boolean test(T t);
} 本文作者为DBC,转载请注明。