public boolean accept(String name) { for (Filter filter : filters) { if (filter.accept(name)) return true; } return false; }
public boolean accept(String name) { for (Filter filter : filters) { if (filter.accept(name)) return true; } return false; }
public UriSet filter(Filter filter) { Map<String, URI> URIs = new HashMap<String, URI>(); for (Map.Entry<String, URI> entry : this.URIs.entrySet()) { String URI = entry.getKey(); if (filter.accept(URI)) { URIs.put(URI, entry.getValue()); } } return new UriSet(URIs); }
public UrlSet filter(Filter filter) { Map<String, URL> urls = new HashMap<String, URL>(); for (Map.Entry<String, URL> entry : this.urls.entrySet()) { String url = entry.getKey(); if (filter.accept(url)){ urls.put(url, entry.getValue()); } } return new UrlSet(urls); }
private void seek() { while (next == null && it.hasNext()) { next = it.next(); if (filter.accept(next.getName())) return; next = null; } }
@Override public boolean accept(final URL url) { try { final File file = URLs.toFile(url); return !excluded.accept(file.getName()); } catch (final IllegalArgumentException iae) { return true; } }
public static boolean skip(final String name) { getExclusions(); if (filter != null && filter.accept(name)) { return true; } return false; }
private void seek() { while (next == null && it.hasNext()) { next = it.next(); if (filter.accept(next.getName())) return; next = null; } }
public UrlSet filter(Filter filter) { Map<String, URL> urls = new HashMap<String, URL>(); for (Map.Entry<String, URL> entry : this.urls.entrySet()) { String url = entry.getKey(); if (filter.accept(url)){ urls.put(url, entry.getValue()); } } return new UrlSet(urls); }
@Override public boolean accept(final URL url) { try { final File file = URLs.toFile(url); return !excluded.accept(file.getName()); } catch (final IllegalArgumentException iae) { return true; } }
public UriSet filter(Filter filter) { Map<String, URI> URIs = new HashMap<String, URI>(); for (Map.Entry<String, URI> entry : this.URIs.entrySet()) { String URI = entry.getKey(); if (filter.accept(URI)) { URIs.put(URI, entry.getValue()); } } return new UriSet(URIs); }
public UrlSet filter(Filter filter) { Map<String, URL> urls = new HashMap<String, URL>(); for (Map.Entry<String, URL> entry : this.urls.entrySet()) { String url = entry.getKey(); if (filter.accept(url)){ urls.put(url, entry.getValue()); } } return new UrlSet(urls); }
public static boolean skip(final String name) { getExclusions(); if (filter != null && filter.accept(name)) { return true; } return false; }
public UriSet filter(Filter filter) { Map<String, URI> URIs = new HashMap<String, URI>(); for (Map.Entry<String, URI> entry : this.URIs.entrySet()) { String URI = entry.getKey(); if (filter.accept(URI)) { URIs.put(URI, entry.getValue()); } } return new UriSet(URIs); }
private void seek() { while (next == null && it.hasNext()) { next = it.next(); if (filter.accept(next.getName())) return; next = null; } }
public static JsonObject filter(final JsonObject jsonObject) { final JsonObjectBuilder builder = JSON_BUILDER_FACTORY.createObjectBuilder(); for (final String key : jsonObject.keySet()) { if (! claimFilter.accept(key)) continue; builder.add(key, jsonObject.get(key)); } return builder.build(); } }