⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 twodigitfilenamefilter.java

📁 pebble-blog 博客源码博客源码博客源码
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -