@Override
	public String[] list(Regex regex) {
		if(regex != null && !resources.isEmpty()) {
			List<String> matches = new ArrayList<>();
			for(String resource : resources) {
				if(regex.matches(resource)) {
					matches.add(resource);
				}
			}
			return matches.toArray(new String[matches.size()]);
		}
		return null;
	}
@ Override public String [ ] list ( Regex regex ) { if ( regex != null && ! resources . isEmpty ( ) ) { List < String > matches = new ArrayList < > ( ) ; for ( String resource : resources ) { if ( regex . matches ( resource ) ) { matches . add ( resource ) ; } } return matches . toArray ( new String [ matches . size ( ) ] ) ; } return null ; }
@see org.dihedron.patterns.cache.Storage#list(org.dihedron.core.regex.Regex)