Possible Duplicate:
Help with understanding a function object or functor in Java
I am currently reading the book "data structures and problem solving using Java" by Mark Allen Weiss and the explanation of a functor is not clear to me.
1) Why do you use them? 2) Exactly what do they do?
The only thing I am getting from this book is if a particular object does not have a compareTo method you use a function object to give it one ha-ha.....help me!!