Class ApiIterator<E>

  • Type Parameters:
    E - the type of elements returned by this iterator
    All Implemented Interfaces:
    java.io.Serializable, java.util.Iterator<E>

    public class ApiIterator<E>
    extends java.lang.Object
    implements java.io.Serializable, java.util.Iterator<E>
    A wrapper for a RemoteIterator that will catch all RemoteExceptions and rethrows them as ApiExceptions.
    Author:
    Copyright (c) 2014-2024 Piketec GmbH - MIT License (MIT) - All rights reserved
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      E next()  
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • ApiIterator

        public ApiIterator​(RemoteIterator<E> delegate)
        Creates a new ApiIterator.
        Parameters:
        delegate - The RemoteIterator where the method calls will be delgated to.
    • Method Detail

      • hasNext

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

        public E next()
        Specified by:
        next in interface java.util.Iterator<E>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<E>