edu.stanford.nlp.objectbank.IdentityFunction Maven / Gradle / Ivy
package edu.stanford.nlp.objectbank;
import java.util.function.Function;
/** An Identity function that returns its argument.
*
* @author Jenny Finkel
*/
public class IdentityFunction implements Function {
/**
* @param o The Object to be returned
* @return o
*/
@Override
public X apply(X o) {
return o;
}
}