public interface PaymentPeerList extends OsidList
Like all OsidLists,
PaymentPeerList
provides a means for accessing PaymentPeer
elements
sequentially either one at a time or many at a time. Examples:
while (ppl.hasNext()) { PaymentPeer peer = pfl.getNextPaymentPeer(); }or
while (ppl.hasNext()) { PaymentPeer[] peers = ppl.getNextPaymentPeer(ppl.available()); }
Modifier and Type | Method and Description |
---|---|
PaymentPeer |
getNextPaymentPeer()
Gets the next
PaymentPeer in this list. |
PaymentPeer[] |
getNextPaymentPeers(long n)
Gets the next set of
PaymentPeer elements in this list. |
PaymentPeer getNextPaymentPeer() throws OperationFailedException
PaymentPeer
in this list. PaymentPeer
in this list. The
hasNext()
method should be used to test that a next
PaymentPeer
is available before calling this
method.IllegalStateException
- no more elements available in
this listOperationFailedException
- unable to complete requestmandatory
- This method must be implemented. PaymentPeer[] getNextPaymentPeers(long n) throws OperationFailedException
PaymentPeer
elements in this list.
The specified amount must be less than or equal to the return from
available().
n
- the number of PaymentPeer
elements requested
which must be less than or equal to available()
PaymentPeer
elements.
The length of the array is less than or equal to the
number specified.IllegalStateException
- no more elements available in
this listOperationFailedException
- unable to complete requestmandatory
- This method must be implemented.