|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tigris.gef.util.FunctorIdentity
public class FunctorIdentity
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.
| Constructor Summary | |
|---|---|
FunctorIdentity()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
apply(java.lang.Object x)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FunctorIdentity()
| Method Detail |
|---|
public java.lang.Object apply(java.lang.Object x)
apply in interface Functor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||