Class PrintForeachAction<K,​V>

  • All Implemented Interfaces:
    ForeachAction<K,​V>

    public class PrintForeachAction<K,​V>
    extends java.lang.Object
    implements ForeachAction<K,​V>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(K key, V value)
      Perform an action for each record of a stream.
      void close()  
      • Methods inherited from class java.lang.Object

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

      • apply

        public void apply​(K key,
                          V value)
        Description copied from interface: ForeachAction
        Perform an action for each record of a stream.
        Specified by:
        apply in interface ForeachAction<K,​V>
        Parameters:
        key - the key of the record
        value - the value of the record
      • close

        public void close()