Class ApiIterable<E>

  • Type Parameters:
    E - the type of elements returned by this iterable
    All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<E>

    public class ApiIterable<E>
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Iterable<E>
    A wrapper for a RemoteIterable 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
      java.util.Iterator<E> iterator()  
      • Methods inherited from class java.lang.Object

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

        forEach, spliterator
    • Constructor Detail

      • ApiIterable

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

      • iterator

        public java.util.Iterator<E> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<E>