@Test public void testEmptyFilterMatchAll() { FileFilter filter = new FileFilter(FileFilter.MATCH_ALL, FileFilter.INCLUDE, true); assertTrue(filter.match(testNode)); }
public boolean match(final File file) { boolean result = doMmatch(file); return filterType == INCLUDE ? result : !result; }
FileFilter { public boolean match(final File file) { boolean result = doMmatch(file); return filterType == INCLUDE ? result : !result; } }
FileFilter { public boolean match(final File file) { boolean result = doMmatch(file); return filterType == INCLUDE ? result : !result; } FileFilter(int matchType, int filterType, boolean appliesToDir, FileFilterRule... rules); }
FileFilter { public boolean match(final File file) { boolean result = doMmatch(file); return filterType == INCLUDE ? result : !result; } FileFilter(int matchType, int filterType, boolean appliesToDir, FileFilterRule... rules); int getMatchType(); int getFilterType(); boolean appliesToDirectories(); FileFilterRule[] getFileFiltersRules(); boolean match(final File file); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
FileFilter { public boolean match(final File file) { boolean result = doMmatch(file); return filterType == INCLUDE ? result : !result; } FileFilter(int matchType, int filterType, boolean appliesToDir, FileFilterRule... rules); int getMatchType(); int getFilterType(); boolean appliesToDirectories(); FileFilterRule[] getFileFiltersRules(); boolean match(final File file); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static final int MATCH_ALL; static final int MATCH_ANY; static final int INCLUDE; static final int EXCLUDE; }