Commons Functor: Function Objects for JavaA functor is a function that can be manipulated as an object, or an object representing a single, generic function. Functors support and encourage a number of powerful programming techniques including:
See the examples for more information on some of these techniques. OverviewCommons Functor defines three general types of functors:
The root functor package defines three signatures for each functor type--taking zero, one or two Object arguments. The remaining packages provide common functor implementations, adapters and utilities. |