FunctionalInterface method to add annotations

pull/657/head
chen.ma 2 years ago
parent 12ecbada8d
commit 74c868e544

@ -23,5 +23,8 @@ package cn.hippo4j.common.function;
@FunctionalInterface
public interface Matcher<T> {
/**
* Returns {@code true} if this matches {@code t}, {@code false} otherwise.
*/
boolean match(T t);
}

@ -23,5 +23,8 @@ package cn.hippo4j.common.function;
@FunctionalInterface
public interface NoArgsConsumer {
/**
* Execute operation without parameters.
*/
void accept();
}

Loading…
Cancel
Save