org.erights.e.elib.util
Class IdentityFunc

java.lang.Object
  |
  +--org.erights.e.elib.util.IdentityFunc
All Implemented Interfaces:
OneArgFunc

public class IdentityFunc
extends Object
implements OneArgFunc

Untamed: Just returns its argument

Author:
Mark S. Miller

Field Summary
static IdentityFunc THE_ONE
          Enabled: The canonical instance
 
Constructor Summary
private IdentityFunc()
           
 
Method Summary
 Object run(Object arg)
          Enabled: Returns arg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THE_ONE

public static final IdentityFunc THE_ONE
Enabled: The canonical instance

Constructor Detail

IdentityFunc

private IdentityFunc()
Method Detail

run

public Object run(Object arg)
Enabled: Returns arg

Specified by:
run in interface OneArgFunc


comments?