Class ArrayIterator

    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayIterator​(Object[] elements)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates an array-based remote iterator from the given array of remote references or serializable objects.
    • Constructor Detail

      • ArrayIterator

        public ArrayIterator​(Object[] elements)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates an array-based remote iterator from the given array of remote references or serializable objects.
        Parameters:
        elements - elements of the iteration
    • Method Detail

      • getSize

        public long getSize()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns the size of the iterator.
        Specified by:
        getSize in interface RemoteIterator
        Returns:
        length of the iterator
        See Also:
        RemoteIterator.getSize()
      • nextObjects

        public Object[] nextObjects()
                             throws IllegalArgumentException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns the underlying array. Returns an array of remote references to the next elements in this iterator. Returns null if the end of this iteration has been reached.

        To reduce the amount of remote method calls, this method returns an array of one or more elements in this iteration.

        Specified by:
        nextObjects in interface RemoteIterator
        Returns:
        array of remote references, or null
        Throws:
        IllegalArgumentException - if maxItems is not positive
        See Also:
        Iterator.next()