endswithfilter.java
来自「JaNet: Java Neural Network Toolkit res」· Java 代码 · 共 66 行
JAVA
66 行
//////////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 1996 L. Patocchi & W.Gander//// This program is free software; you can redistribute it and/or modify it// under the terms of the GNU General Public License as published by the Free// Software Foundation; either version 2 of the License, or (at your option)// any later version.//// This program is distributed in the hope that it will be useful, but WITHOUT// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for// more details.//// You should have received a copy of the GNU General Public License along with// this program; if not, write to the Free Software Foundation, Inc., 675 Mass// Ave, Cambridge, MA 02139, USA.//// Contacts:// // Project Supervisor// W.Hett hew@info.isbiel.ch// // Authors// W.Gander gandw@info.isbiel.ch// L.Patocchi patol@info.isbiel.ch//// Documentation can be found at://// http://www.isbiel.ch/Projects/janet/index.html////////////////////////////////////////////////////////////////////////////////////////// File : EndsWithFilter.java///* jaNet - A Neural Network Toolkit for Java ----------------------------------------- Author : W.Gander Modifications : 07.09.1996 Filename : EndsWithFilter.java Description : File filter to get only project files (*.prj) (c) 1996 Biel School of Engineering */package jaNet;import java.io.*;class EndsWithFilter implements FilenameFilter { private String extension; public EndsWithFilter (String extension) { this.extension = extension; } public boolean accept(File dir, String name) { if (name.endsWith(extension)) return true; return false; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?