Code example for HashSet

Methods: size, toArray

0
		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(); 
			this.items = new FlowTableItem[0];
			this.set.clear();
		} 
		 
		public View getView(int pos, View convert, ViewGroup parent) {
			View v = convert;
			if (v == null) {
				v = getActivity().getLayoutInflater().inflate(R.layout.flow_table_item, null);
			}