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 @FunctionalInterface
public interface Matcher<T> { public interface Matcher<T> {
/**
* Returns {@code true} if this matches {@code t}, {@code false} otherwise.
*/
boolean match(T t); boolean match(T t);
} }

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

Loading…
Cancel
Save