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

📄 recordfilter.java

📁 有关j2me的很好的例子可以研究一下
💻 JAVA
字号:
/* * @(#)RecordFilter.java	1.8 01/06/19 * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved. * * Copyright 2000 Motorola, Inc. All Rights Reserved. * This notice does not imply publication. */package javax.microedition.rms; /**  * An interface defining a filter which examines a record to see if it  * matches (based on an application-defined criteria). The  * application implements the match() method to select records to  * be returned by the RecordEnumeration. Returns true if the candidate  * record is selected by the RecordFilter. This interface  * is used in the record store for searching or subsetting records. For  * example:  *   * RecordFilter f = new DateRecordFilter(); // class implements RecordFilter  * if (f.matches(recordStore.getRecord(theRecordID)) == true)  * DoSomethingUseful(theRecordID);  *  * @version MIDP 1.0 * @author Jim Van Peursem  */public interface RecordFilter {     /**      * Returns true if the candidate matches the implemented criterion.      *      * @param candidate The record to consider. Within this method, the      * application must treat this parameter as read-only.      * @return true if the candidate matches the implemented criterion.      */    public abstract boolean matches(byte[] candidate); } 

⌨️ 快捷键说明

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