RSS feed [root] /weblog /features /java



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.

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