Code example for HashSet

Methods: addAll, size, toArray

0
	/** 
	 * @return 
	 */ 
	protected String[] requiredFields() {
		if (additionalColumns != null && additionalColumns.length > 0) {
			final HashSet<String> requiredFields = new HashSet<String>(Arrays.asList(viewBinder.requiredFields()));
			requiredFields.addAll(Arrays.asList(additionalColumns));
			return requiredFields.toArray(new String[requiredFields.size()]);
		} 
		return viewBinder.requiredFields();
	} 
 
	protected void showList(final boolean show) {
		if (emptyView != null && listView != null) {
			emptyView.setVisibility(show ? View.GONE : View.VISIBLE);
			listView.setVisibility(show ? View.VISIBLE : View.GONE);
		} 
	} 
 
}