Class CollatingScanner<T>

java.lang.Object
io.datarouter.scanner.BaseScanner<T>
io.datarouter.scanner.CollatingScanner<T>
All Implemented Interfaces:
Scanner<T>, Closeable, AutoCloseable

public class CollatingScanner<T>
extends BaseScanner<T>
  • Constructor Details

  • Method Details

    • advance

      public boolean advance()
      Description copied from interface: Scanner
      Try to update current to the next item, if there is one.
      Returns:
      True if it advanced
    • close

      public void close()
      Description copied from interface: Scanner
      Override to cleanup any resources. The call should be propagated to all parent scanners. In the infrequent case of calling advance/current in an application, the Scanner should be explicitly closed. Because the included Scanner operations will close themselves when they fail to advance, it frequently a no-op for the application, unless closing the scanner before it stops advancing.