Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8030
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: improvise LatchCounter |
| Date | 2011-09-14 11:52 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <gst1775t68e4ln54er1qj06qfshj9l3gna@4ax.com> (permalink) |
| References | <3866cb2e-c182-47ce-b03a-33ec8d906f67@glegroupsg2000goo.googlegroups.com> |
On Tue, 13 Sep 2011 22:40:44 -0700 (PDT), Asit Dhal <lipun4u@gmail.com> wrote, quoted or indirectly quoted someone who said : >http://kodeyard.blogspot.com/2011/09/countdown-latch-to-measure-sorting-time.html > >Here, I have made a small utility class which sorts the sample data. > I want to generalize the class by means of an external function(something like call back function). >Please suggest me how to do this ? If you are going to write a Sort it should use the standard Comparator Comparable interfaces. See http://mindprod.com/jgloss/sort.html I have written a number of them. You can have a look at the source code to see how the delegate/callback works. For general background on callbacks see: http://mindprod.com/jgloss/callback.html http://mindprod.com/jgloss/delegate.html -- Roedy Green Canadian Mind Products http://mindprod.com The modern conservative is engaged in one of man's oldest exercises in moral philosophy; that is, the search for a superior moral justification for selfishness. ~ John Kenneth Galbraith (born: 1908-10-15 died: 2006-04-29 at age: 97)
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar
improvise LatchCounter Asit Dhal <lipun4u@gmail.com> - 2011-09-13 22:40 -0700
Re: improvise LatchCounter markspace <-@.> - 2011-09-14 09:44 -0700
Re: improvise LatchCounter Asit Dhal <lipun4u@gmail.com> - 2011-09-14 11:12 -0700
Re: improvise LatchCounter markspace <-@.> - 2011-09-14 12:46 -0700
Re: improvise LatchCounter Roedy Green <see_website@mindprod.com.invalid> - 2011-09-14 11:52 -0700
csiph-web