javax.microedition.rms.RecordComparator

This is an interface which defines a method for comparing records in an implementation defined manner. As an example the comparator may be used by the {@link RecordEnumeration} in the following manner: {@code RecordComparator comp = new CustomRecordComparator(); if (comp.compare(recordstore.getRecord(a), recordstore.getRecord(b)) == RecordComparator.PRECEDES) return a; }