@Override
	public String[] list(Regex regex) {
		List<String> matched = new ArrayList<String>();
		if(regex != null) {
			for (String resource : contents.keySet()) {
				if(regex.matches(resource)) {
					logger.trace("regular expression matches input string '{}'", resource);
					matched.add(resource);
				}
			}
		} else {
			matched.addAll(contents.keySet());
		}
		return matched.toArray(new String[0]);
	}
@ Override public String [ ] list ( Regex regex ) { List < String > matched = new ArrayList < String > ( ) ; if ( regex != null ) { for ( String resource : contents . keySet ( ) ) { if ( regex . matches ( resource ) ) { logger . trace ( "regular expression matches input string '{}'" , resource ) ; matched . add ( resource ) ; } } } else { matched . addAll ( contents . keySet ( ) ) ; } return matched . toArray ( new String [ 0 ] ) ; }
@see org.dihedron.patterns.cache.Storage#list(org.dihedron.core.regex.Regex)