A filter is an algorithm that you can submit to the RecordStore::enumerateRecords() method to direct it to select only specific records from the RecordStore object. To create a filter, you implement a specialized version of the RecordFilter class. To specialize the class, you override the matches() method. After you have implemented a specialized version of the RecordFilter class, you can then use an instance of it as the first argument in the enumerateRecords() method. Table 8.5 provides a summary view of some of the details related to the class.
|boolean matches (byte candidate)||Returns true if the candidate record validly passes through the filtering rules. You must ...|