类 Consumers
- java.lang.Object
-
- net.dongliu.commons.function.Consumers
-
public class Consumers extends java.lang.ObjectUtils for Consumer
-
-
构造器概要
构造器 构造器 说明 Consumers()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static <T> java.util.function.Consumer<T>adapterIndexed(IndexedConsumer<? super T> consumer)Adaptor for consuming with indexstatic <T> java.util.function.Consumer<T>doNothing()Return a consumer that do noting.
-
-
-
方法详细资料
-
doNothing
public static <T> java.util.function.Consumer<T> doNothing()
Return a consumer that do noting.
-
adapterIndexed
public static <T> java.util.function.Consumer<T> adapterIndexed(IndexedConsumer<? super T> consumer)
Adaptor for consuming with index
-
-