View Javadoc
1 package com.bonevich.util; 2 3 /*** 4 * An interface for implementing function objects. Functors 5 * are very useful when combined with Visitors. 6 */ 7 public interface Functor 8 { 9 /*** 10 * A function taking a single argument (which could be a list...) 11 * and possibly returning a result value. NOTE: Functions may 12 * have side-effects (nothing can be done about this; it is Java 13 * we are taking about after all...). 14 */ 15 public Object function(Object arg); 16 17 } /*** end interface Functor */

This page was automatically generated by Maven