Project: stp

javax.wvcm
Interface ResourceList.ResponseIterator<V>

Enclosing interface:
ResourceList<T extends Resource>

public static interface ResourceList.ResponseIterator<V>

An iterator of the results of applying a method to each element of a ResourceList.

See Also:
Iterator

Method Summary
 boolean hasNext()
          Test whether the iteration has more elements.
 V next()
          Get the result of applying the method to the next element of the ResourceList.
 void release()
          Release any resources associated with this ResponseIterator.
 

Method Detail

hasNext

boolean hasNext()
Test whether the iteration has more elements.

Returns:
true if the iteration has more elements.
See Also:
Iterator.hasNext()

next

V next()
       throws WvcmException,
              NoSuchElementException
Get the result of applying the method to the next element of the ResourceList.

Returns:
if the method succeeded on the corresponding element of the ResourceList, the object returned by that method is returned; otherwise, a WvcmException is thrown. For methods that return void, next() returns null.
Throws:
WvcmException - indicates that the method failed on this element of the ResourceList. If WvcmException.ReasonCode is WvcmException.ReasonCode.ABORTED, it does not indicate the method has failed on this element, but instead indicates that an abort requested through Feedback has terminated the ResponseIterator. After this exception is handled, unless the reason code is WvcmException.ReasonCode.ABORTED, further calls to hasNext() and next() are valid, and will process the remaining elements of the ResourceList.
NoSuchElementException - iteration has no more elements.
See Also:
Iterator.next()

release

void release()
Release any resources associated with this ResponseIterator. This should be called if the client is done with this ResponseIterator even though the last call to hasNext has returned true.


Generated Thu 17-Apr-2014 02:17 PM

Copyright © IBM 2014. All rights reserved.