javautils.fun
Class ObjectToObject

java.lang.Object
  |
  +--javautils.fun.Function
        |
        +--javautils.fun.ObjectToObject

public abstract class ObjectToObject
extends Function

Object->Object function.


Field Summary
static ObjectToObject IDENTITY
           
 
Constructor Summary
ObjectToObject()
           
 
Method Summary
static ObjectToObject bindArgs(java.lang.reflect.Method method, java.lang.Object[] args)
          A wrapper that calls the given arbitrary method on the object given as a parameter to the with(Object)-method with the given arguments.
static ObjectToObject bindSelf(java.lang.reflect.Method method, java.lang.Object self)
          A wrapper that calls the given arbitrary method on the given object with the parameter given to the with(Object)-method of the wrapper.
static ObjectToObject from(Function f)
          A wrapper that calls the given arbitrary function.
abstract  java.lang.Object with(java.lang.Object _0)
           
 
Methods inherited from class javautils.fun.Function
getMethod, getSelf, invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTITY

public static final ObjectToObject IDENTITY
Constructor Detail

ObjectToObject

public ObjectToObject()
Method Detail

with

public abstract java.lang.Object with(java.lang.Object _0)

from

public static ObjectToObject from(Function f)

A wrapper that calls the given arbitrary function.

Note:


bindArgs

public static ObjectToObject bindArgs(java.lang.reflect.Method method,
                                      java.lang.Object[] args)

A wrapper that calls the given arbitrary method on the object given as a parameter to the with(Object)-method with the given arguments.


bindSelf

public static ObjectToObject bindSelf(java.lang.reflect.Method method,
                                      java.lang.Object self)

A wrapper that calls the given arbitrary method on the given object with the parameter given to the with(Object)-method of the wrapper.