RSS feed [root] /features /java /weblog




login:

password:

title search:




 


Mon Nov 28 10:04:16 GMT 2005

using functional pointer style in java



In my own development, I find that delegates implementing interfaces are more useful than those using invoke. The buildRunnable method is especially useful. In Swing programming, where large numbers of Runnables are needed to pass control to the swing thread, the ability to turn methods into Runnables is particularly useful. Delegates allow me to largely eliminate the need for anonymous inner classes, improving the readability of my code.

http://www.onjava.com/lpt/a/3772


(google search) (amazon search)
second
download zip of files only