类 Consumers


  • public class Consumers
    extends java.lang.Object
    Utils for Consumer
    • 构造器概要

      构造器 
      构造器 说明
      Consumers()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static <T> java.util.function.Consumer<T> adapterIndexed​(IndexedConsumer<? super T> consumer)
      Adaptor for consuming with index
      static <T> java.util.function.Consumer<T> doNothing()
      Return a consumer that do noting.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • Consumers

        public Consumers()
    • 方法详细资料

      • 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