public Iterator iterator ( ) { try { DistributedIteratorImpl di ; di = new DistributedIteratorImpl ( super . iterator ( ) ) ; return new ClientIterator ( di ) ; } catch ( RemoteException e ) { // Rethrow the RemoteException as a RuntimeException so as not to conflict with the interface of ArrayList throw new IllegalStateException ( "There was a RemoteExcpetion." , e ) ; } }
Returns a distriubuted iterator that can provide elements of the list on demand over a remote connection .