Code example for HashSet

Methods: clear

0
		public int getCount() { 
			return items.length;
		} 
		 
		public void startRound() { 
			this.set.clear();
		} 
		 
		@Override 
		public void add(FlowTableItem item) {
			this.set.add(item);
		} 
		 
		public void endRound() { 
			this.items = new FlowTableItem[set.size()];
			this.set.toArray(this.items);
		} 
		 
		@Override 
		public void clear() { 
			super.clear();