|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBrowseList
public class BrowseList
list of auction listings intended for users. NOTE: The purpose of this code is to illustrate implementation starting from UML class and sequence diagrams. It may be incomplete and may not compile.
Field Summary | |
---|---|
private java.util.ArrayList<AuctionListing> |
list
list of AuctionListing objects: |
Constructor Summary | |
---|---|
BrowseList()
constructs a new BrowseList object. |
Method Summary | |
---|---|
void |
addListing(AuctionListing al)
adds an AuctionListing object to the list |
AuctionListing |
get(int index)
return listing at element index |
int |
size()
return list size (element count) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList<AuctionListing> list
Constructor Detail |
---|
public BrowseList()
ActiveList
class
during getBrowseList()
.
This class is necessary because users must not be given access to the ActiveList object.
It provides a minimal interface for read-only access to list content.
ActiveList
Method Detail |
---|
public void addListing(AuctionListing al)
AuctionListing
object to the list
al
- the auction listingAuctionListing
public int size()
public AuctionListing get(int index)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |