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