Code example for ConcurrentHashMap

Methods: clear

0
	public BidsToAh() { 
		this.map = new ConcurrentHashMap<Auction, List<Bid>>();
	} 
	 
	public void endAhTurn() { 
		this.map.clear();
	} 
	 
	public void startAhTurn() { 
	} 
	 
	/** 
	 * ONLY TO BE CALLED BY AuctionHouse 
	 * Don't need to synchronise when it's a read by 1 thread...?  
	 */ 
	public Map<Auction, List<Bid>> get() {
		return this.map;
	} 
	 
	/** 
	 * NOT TO BE CALLED BY AuctionHouse