OSID Logo
OSID Specifications
bidding package
Version 3.0.0
Interfaceosid.bidding.AuctionList
Implementsosid.OsidList
Used Byosid.bidding.AuctionAuctionHouseSession
osid.bidding.AuctionLookupSession
osid.bidding.AuctionQuerySession
osid.bidding.AuctionSearchResults
osid.bidding.MyAuctionSession
osid.bidding.rules.AuctionConstrainerRuleLookupSession
osid.bidding.rules.AuctionProcessorRuleLookupSession
Description

Like all OsidLists , AuctionList provides a means for accessing Auction elements sequentially either one at a time or many at a time. Examples:

while (al.hasNext()) {
     Auction auction = al.getNextAuction();
}            
                
or
while (el.hasNext()) {
     Auction[] auctions = al.getNextAuctions(al.available());
}            
                
MethodgetNextAuction
Description

Gets the next Auction in this list.

Returnosid.bidding.Auctionthe next Auction in this list. The hasNext() method should be used to test that a next Auction is available before calling this method.
ErrorsILLEGAL_STATEno more elements available in this list
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetNextAuctions
Description

Gets the next set of Auction elements in this list. The specified amount must be less than or equal to the return from available() .

Parameterscardinalnthe number of Auction elements requested which must be less than or equal to available()
Returnosid.bidding.Auction[]an array of Auction elements. The length of the array is less than or equal to the number specified.
ErrorsILLEGAL_STATEno more elements available in this list
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.