edu.stanford.nlp.objectbank
Class IdentityFunction

java.lang.Object
  extended by edu.stanford.nlp.objectbank.IdentityFunction
All Implemented Interfaces:
Function, Serializable

public class IdentityFunction
extends Object
implements Function

Author:
Jenny Finkel
See Also:
Serialized Form

Constructor Summary
IdentityFunction()
           
 
Method Summary
 Object apply(Object o)
          Converts a T1 to a different T2.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityFunction

public IdentityFunction()
Method Detail

apply

public Object apply(Object o)
Description copied from interface: Function
Converts a T1 to a different T2. For example, a Parser will convert a Sentence to a Tree. A Tagger will convert a Sentence to a TaggedSentence.

Specified by:
apply in interface Function
Parameters:
o - The Object to be returned
Returns:
o


Stanford NLP Group