On Mar 10, 2005, at 10:36, Rikesh Balan Krishnan wrote:
But all this methods are applicable only if the model class extends the comparator interface.
No. If your "model class" do not implement java.lang.Comparable, you can provide your own java.util.Comparator to java.util.Collections.sort() and/or java.util.Arrays.sort().
http://alt.textdrive.com/assets/public/lucene-1.4.3/ java.lang.Comparable.cls.html
http://alt.textdrive.com/assets/public/lucene-1.4.3/ java.util.Comparator.cls.html
Cheers
-- PA, Onnay Equitursay http://alt.textdrive.com/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]