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

📄 filter.java

📁 中間件開發详细说明:清华大学J2EE教程讲义(ppt)-Tsinghua University J2EE tutorial lectures (ppt) [上载源码成为会员下载此源码] [成为VIP会
💻 JAVA
字号:
/* * Title:        GridSim Toolkit * Description:  GridSim (Grid Simulation) Toolkit for Modeling and Simulation *               of Parallel and Distributed Systems such as Clusters and Grids * Licence:      GPL - http://www.gnu.org/copyleft/gpl.html */package gridsim.datagrid.filter;import gridsim.datagrid.FileAttribute;/** * An abstract class for filtering a file from the Replica Catalogue list * based on its attributes, * such as file name, size, etc. All you need to do is the following: * <ol> *      <li> creates a child class that extends this class *      <li> the child class' constructor should contain a list of *           attributes to compare *      <li> implement the {@link #match(FileAttribute)} method for *           comparison * </ol> * @author  Uros Cibej and Anthony Sulistio * @since   GridSim Toolkit 4.0 * @see     gridsim.datagrid.filter.FileNameFilter */public abstract class Filter {    /**     * For each file in the Replica Catalogue list,     * check whether it contains     * a FileAttribute object with the given matching attribute(s)     * @param attr  a FileAttribute object to compare to     * @return <tt>true</tt> if matching, <tt>false</tt> otherwise     */    abstract public boolean match(FileAttribute attr);} // end class

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -