mSearchSet = searchSet;
Set resolvedSet = null; if ( dottedNameString.equals( ".*" ) ) { // optimization; match all resolvedSet = new HashSet(); resolvedSet.addAll( mSearchSet ); } else { resolvedSet = resolveAll( dottedNameString, mSearchSet.iterator() ); } return( resolvedSet );
final HashSet resolvedSet = new HashSet(); final Pattern pattern = Pattern.compile( wildcardedName ); while ( iter.hasNext() ) { final String candidate = (String)iter.next(); if ( pattern.matcher( candidate ).matches() ) { resolvedSet.add( candidate ); } } return( resolvedSet );