
jedi.functors.IdentityFunctor Maven / Gradle / Ivy
The newest version!
package jedi.functors;
import jedi.functional.Functor;
import static jedi.functors.ComposeableFunctor.composeable;
/**
* A Functor that returns its argument.
*/
public class IdentityFunctor implements Functor {
public static ComposeableFunctor identity() {
return composeable(new IdentityFunctor());
}
/**
* @param value
* @return value
*/
public T execute(T value) {
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy