Class Consumers


  • public class Consumers
    extends java.lang.Object
    Provides Consumer instances.
    Since:
    3.13.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.function.Consumer NOP
      NOP singleton.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Consumers()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.function.Consumer<T> nop()
      Gets the NOP Consumer singleton.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NOP

        private static final java.util.function.Consumer NOP
        NOP singleton.
    • Constructor Detail

      • Consumers

        private Consumers()
    • Method Detail

      • nop

        public static <T> java.util.function.Consumer<T> nop()
        Gets the NOP Consumer singleton.
        Type Parameters:
        T - type type to consume.
        Returns:
        the NOP Consumer singleton..