twodigitfilenamefilter.java
来自「pebble-blog 博客源码博客源码博客源码」· Java 代码 · 共 26 行
JAVA
26 行
package net.sourceforge.pebble.dao.file;import java.io.FilenameFilter;import java.io.File;/** * Filters out files (directories) that aren't named \d\d. * * @author Simon Brown */public class TwoDigitFilenameFilter implements FilenameFilter { /** * Tests if a specified file should be included in a file list. * * @param file the directory in which the file was found. * @param name the name of the file. * @return <code>true</code> if and only if the name should be * included in the file list; <code>false</code> otherwise. */ public boolean accept(File file, String name) { return name.matches("\\d\\d\\z"); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?