Lines Matching defs:filter
1140 * filter. The behavior of this method is the same as that of the
1142 * must satisfy the filter. If the given {@code filter} is {@code null}
1143 * then all names are accepted. Otherwise, a name satisfies the filter if
1146 * of the filter is invoked on this abstract pathname and the name of a
1149 * @param filter
1150 * A filename filter
1154 * by the given {@code filter}. The array will be empty if the
1155 * directory is empty or if no names were accepted by the filter.
1166 public String[] list(FilenameFilter filter) {
1168 if ((names == null) || (filter == null)) {
1173 if (filter.accept(this, names[i])) {
1232 * satisfy the specified filter. The behavior of this method is the same
1234 * the returned array must satisfy the filter. If the given {@code filter}
1236 * satisfies the filter if and only if the value {@code true} results when
1238 * FilenameFilter.accept(File, String)} method of the filter is
1242 * @param filter
1243 * A filename filter
1259 public File[] listFiles(FilenameFilter filter) {
1264 if ((filter == null) || filter.accept(this, s))
1272 * satisfy the specified filter. The behavior of this method is the same
1274 * the returned array must satisfy the filter. If the given {@code filter}
1276 * satisfies the filter if and only if the value {@code true} results when
1278 * filter is invoked on the pathname.
1280 * @param filter
1281 * A file filter
1297 public File[] listFiles(FileFilter filter) {
1303 if ((filter == null) || filter.accept(f))