Feature: 抽离无参消费者函数.

pull/10/head
chen.ma 3 years ago
parent a369daa5a3
commit 4a8d9ff6b0

@ -0,0 +1,17 @@
package com.github.dynamic.threadpool.common.function;
/**
* .
*
* @author chen.ma
* @date 2021/11/9 00:06
*/
@FunctionalInterface
public interface NoArgsConsumer {
/**
*
*/
void accept();
}

@ -1,5 +1,7 @@
package com.github.dynamic.threadpool.common.toolkit; package com.github.dynamic.threadpool.common.toolkit;
import com.github.dynamic.threadpool.common.function.NoArgsConsumer;
/** /**
* Condition util. * Condition util.
* *
@ -16,13 +18,4 @@ public class ConditionUtil {
} }
} }
public interface NoArgsConsumer {
/**
*
*/
void accept();
}
} }

Loading…
Cancel
Save