@Override
	public String getDescription() {
		if (fullDescription == null) {
			final String temp;
			if (description == null || isExtensionListInDescription()) {
				final StringBuilder sb = new StringBuilder();
				sb.append(description == null ? "(" : description + " (");
				// build the description from the extension list
				boolean first = true;
				for (final String filterKey : filters.keySet()) {
					if (first) {
						first = false;
					} else {
						sb.append(", ");
					}
					sb.append("*.");
					sb.append(filterKey);
				}
				sb.append(')');
				temp = sb.toString();
			} else {
				temp = description;
			}

			// Command Query Separation with lazy initialization : set fullDescription only once
			fullDescription = temp;
		}
		return fullDescription;
	}
@ Override public String getDescription ( ) { if ( fullDescription == null ) { final String temp ; if ( description == null || isExtensionListInDescription ( ) ) { final StringBuilder sb = new StringBuilder ( ) ; sb . append ( description == null ? "(" : description + " (" ) ; boolean first = true ; for ( final String filterKey : filters . keySet ( ) ) { if ( first ) { first = false ; } else { sb . append ( ", " ) ; } sb . append ( "*." ) ; sb . append ( filterKey ) ; } sb . append ( ')' ) ; temp = sb . toString ( ) ; } else { temp = description ; } fullDescription = temp ; } return fullDescription ; }
Returns the human readable description of this filter. For example: "JPEG and GIF Image Files (*.jpg, *.gif)"

@return String
@see #setDescription
@see #setExtensionListInDescription
@see #isExtensionListInDescription
@see javax.swing.filechooser.FileFilter#getDescription