// Test method public LinkedList<Integer> getLiveAuctionsIds() throws RemoteException { LinkedList<Integer> ll = new LinkedList<Integer>(); for (AuctionItem t : liveAuctionItems.values()) { ll.add(t.getAuctionId()); } return ll; }
@Override public LinkedList<String> getExistingAuctions() throws RemoteException { LinkedList<String> ll = new LinkedList<String>(); for (AuctionItem i : liveAuctionItems.values()) { ll.add(i.toString()); } return ll; }
@Override public LinkedList<String> getExpiredAuctions() throws RemoteException { LinkedList<String> ll = new LinkedList<String>(); for (ExpiredAuctionItem item : expiredAuctions.values()) { ll.add(item.toString()); } return ll; }