uci.util
Class FunctorIdentity
java.lang.Object
|
+--uci.util.FunctorIdentity
- public class FunctorIdentity
- extends Object
- implements Functor
A useful implementation of interface Functor that simply returns
the same object that was passed to it. Use this class when you
want to use a method that takes a Functor, but you do not actually
want to apply any function.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
FunctorIdentity
public FunctorIdentity()
apply
public Object apply(Object x)
- Specified by:
- apply in interface Functor