diff --git a/hippo4j-common/src/main/java/cn/hippo4j/common/function/Matcher.java b/hippo4j-common/src/main/java/cn/hippo4j/common/function/Matcher.java index 918ec3ee..a6377d2d 100644 --- a/hippo4j-common/src/main/java/cn/hippo4j/common/function/Matcher.java +++ b/hippo4j-common/src/main/java/cn/hippo4j/common/function/Matcher.java @@ -23,5 +23,8 @@ package cn.hippo4j.common.function; @FunctionalInterface public interface Matcher { + /** + * Returns {@code true} if this matches {@code t}, {@code false} otherwise. + */ boolean match(T t); } diff --git a/hippo4j-common/src/main/java/cn/hippo4j/common/function/NoArgsConsumer.java b/hippo4j-common/src/main/java/cn/hippo4j/common/function/NoArgsConsumer.java index 878691ec..cc4adc7c 100644 --- a/hippo4j-common/src/main/java/cn/hippo4j/common/function/NoArgsConsumer.java +++ b/hippo4j-common/src/main/java/cn/hippo4j/common/function/NoArgsConsumer.java @@ -23,5 +23,8 @@ package cn.hippo4j.common.function; @FunctionalInterface public interface NoArgsConsumer { + /** + * Execute operation without parameters. + */ void accept(); }