コード例 #1
0
 // 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;
 }
コード例 #2
0
 @Override
 public LinkedList<String> getExistingAuctions() throws RemoteException {
   LinkedList<String> ll = new LinkedList<String>();
   for (AuctionItem i : liveAuctionItems.values()) {
     ll.add(i.toString());
   }
   return ll;
 }
コード例 #3
0
 @Override
 public LinkedList<String> getExpiredAuctions() throws RemoteException {
   LinkedList<String> ll = new LinkedList<String>();
   for (ExpiredAuctionItem item : expiredAuctions.values()) {
     ll.add(item.toString());
   }
   return ll;
 }