filter.java

来自「一个非常著名的网格模拟器,能够运行网格调度算法!」· Java 代码 · 共 39 行

JAVA
39
字号
/* * 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 + =
减小字号Ctrl + -
显示快捷键?