edu.stanford.nlp.objectbank
Class IdentityFunction

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

public class IdentityFunction
extends java.lang.Object
implements Function

See Also:
Serialized Form

Constructor Summary
IdentityFunction()
           
 
Method Summary
 java.lang.Object apply(java.lang.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 java.lang.Object apply(java.lang.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