Code example for HashSet

Methods: add, addAll, size, toArray

0
	 * collect all required fields on all handlers 
	 *  
	 * @return collected fields 
	 */ 
	public String[] requiredFields() {
		final HashSet<String> fields = new HashSet<String>();
		fields.addAll(Arrays.asList(viewBinder.requiredFields()));
		if (additionalColumns != null) {
			fields.addAll(Arrays.asList(additionalColumns));
		} 
		fields.add("_id");
		return fields.toArray(new String[fields.size()]);
	} 
 
	public void setCursorLoadedHandler(final Runnable cursorLoadedHandler) {
		this.cursorLoadedHandler = cursorLoadedHandler;
	} 
 
	@Override 
	public Cursor swapCursor(final Cursor newCursor) {
		viewBinder.setCursor(newCursor);