Re: Sorting based on multiple parameters
- From: "Jeff Higgins" <oohiggins@xxxxxxxxx>
- Date: Wed, 14 Nov 2007 19:33:57 -0500
Manish Hatwalne wrote:
Comparator interface has no compareTo method.
"Jeff Higgins" <oohiggins@xxxxxxxxx> wrote in message
news:8VB_i.1$wL7.0@xxxxxxxxxxxxxxx
I am not sure if you understood the question.
"Or in other words, how do I write comparator for following method?"
I am writing thi smethod, and wondering how do I go about writing
compareTo method for multiple parameters.
Comparable interface has a single method:
int compareTo(T o).
.
- Follow-Ups:
- Re: Sorting based on multiple parameters
- From: Manish Hatwalne
- Re: Sorting based on multiple parameters
- References:
- Sorting based on multiple parameters
- From: Manish Hatwalne
- Re: Sorting based on multiple parameters
- From: Jeff Higgins
- Re: Sorting based on multiple parameters
- From: Manish Hatwalne
- Sorting based on multiple parameters
- Prev by Date: convenient way to read text file multiple times without reopening it
- Next by Date: Re: convenient way to read text file multiple times without reopening it
- Previous by thread: Re: Sorting based on multiple parameters
- Next by thread: Re: Sorting based on multiple parameters
- Index(es):
Relevant Pages
|