Class CloseableIteratorGeneric<E>

java.lang.Object
org.sblim.cimclient.internal.wbem.CloseableIteratorGeneric<E>
Type Parameters:
E - : Type
All Implemented Interfaces:
Iterator<Object>, CloseableIterator<Object>

public class CloseableIteratorGeneric<E> extends Object implements CloseableIterator<Object>
Class CloseableIteratorGeneric creates new CloseableIterator from an Iterator and WBEMException.
  • Constructor Details

    • CloseableIteratorGeneric

      public CloseableIteratorGeneric(Iterator<E> pIterator, WBEMException pException)
      Ctor. : creates new CloseableIterator from an Iterator and WBEMException.
      Parameters:
      pIterator - : Iterator to be used in closeableIterator
      pException - : WBEMException thrown by parser (this can be null)
    • CloseableIteratorGeneric

      public CloseableIteratorGeneric(Iterator<E> pIterator)
      Ctor. : creates new CloseableIterator from an Iterator.
      Parameters:
      pIterator - : Iterator to be used in closeableIterator
  • Method Details

    • close

      public void close()
      Description copied from interface: CloseableIterator
      Closes the Iterator. This allows the underlying implementation to do any cleanup and disconnect from any source that it may be using.
      Specified by:
      close in interface CloseableIterator<E>
    • getWBEMException

      public WBEMException getWBEMException()
      Returns WBEMException
      Specified by:
      getWBEMException in interface CloseableIterator<E>
      Returns:
      WBEMException : This can be null
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<E>
    • next

      public Object next()
      Specified by:
      next in interface Iterator<E>
    • remove

      public void remove()
      iterator.remove() is not supported
      Specified by:
      remove in interface Iterator<E>