public interface RecordFilter
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); |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(byte[] candidate)
Returns
true if the candidate matches the implemented
criterion. |
boolean matches(byte[] candidate)
true
if the candidate matches the implemented
criterion.candidate
- the record to consider. Within this method, the application
must treat this parameter as read-only.true
if the candidate matches the implemented
criterion, false
otherwiseCopyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.