Class Functions.ActionConsumer<T>

  • All Implemented Interfaces:
    Consumer<T>
    Enclosing class:
    Functions

    static final class Functions.ActionConsumer<T>
    extends java.lang.Object
    implements Consumer<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) Action action  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(T t)
      Consume the given value.
      • Methods inherited from class java.lang.Object

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

    • Constructor Detail

      • ActionConsumer

        ActionConsumer​(Action action)
    • Method Detail

      • accept

        public void accept​(T t)
                    throws java.lang.Throwable
        Description copied from interface: Consumer
        Consume the given value.
        Specified by:
        accept in interface Consumer<T>
        Parameters:
        t - the value
        Throws:
        java.lang.Throwable - if the implementation wishes to throw any type of exception