Class AbstractCloseableIteration<E,​X extends java.lang.Exception>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean closed
      Deprecated.
      Flag indicating whether this iteration has been closed.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void close()
      Deprecated.
      Calls handleClose() upon first call and makes sure the resource closures are only executed once.
      protected void handleClose()
      Deprecated.
      Called by close() when it is called for the first time.
      boolean isClosed()
      Deprecated.
      Checks whether this CloseableIteration has been closed.
      • Methods inherited from class java.lang.Object

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

      • closed

        private boolean closed
        Deprecated.
        Flag indicating whether this iteration has been closed.
    • Constructor Detail

      • AbstractCloseableIteration

        public AbstractCloseableIteration()
        Deprecated.
    • Method Detail

      • isClosed

        public final boolean isClosed()
        Deprecated.
        Checks whether this CloseableIteration has been closed.
        Returns:
        true if the CloseableIteration has been closed, false otherwise.
      • close

        public final void close()
                         throws X extends java.lang.Exception
        Deprecated.
        Calls handleClose() upon first call and makes sure the resource closures are only executed once.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface CloseableIteration<E,​X extends java.lang.Exception>
        Throws:
        X extends java.lang.Exception
      • handleClose

        protected void handleClose()
                            throws X extends java.lang.Exception
        Deprecated.
        Called by close() when it is called for the first time. This method is only called once on each iteration. By default, this method does nothing.
        Throws:
        X
        X extends java.lang.Exception