Top stories

Buzz | Video | Top stories | My News


Functors in Java and beyond

Functors are defined as a function encapsulated in an object. In most cases, the function???s parameters can be set and the result retrieved using the common accessor pattern, such as setParameter1(Object value) or getResult(). The fact that these functions are encapsulated by real objects is also the reason for its greatest benefit: the use of many design patterns including structural ones such as the Decorator pattern and behavioral ones such as the Visitor pattern.

Tags : java programming

You will be redirected to Functors in Java and beyond, in 20 seconds.




Register now!

Registered users don't wait for redirections. Register now for free and browse your favorite tags easilly and fast.