javautils.fun
Class ObjectToVoid

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

public abstract class ObjectToVoid
extends Function

Object->void procedure.


Field Summary
static ObjectToVoid NOP
           
 
Constructor Summary
ObjectToVoid()
           
 
Method Summary
static ObjectToVoid 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 ObjectToVoid 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 ObjectToVoid from(Function f)
          A wrapper that calls the given arbitrary function.
abstract  void 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

NOP

public static final ObjectToVoid NOP
Constructor Detail

ObjectToVoid

public ObjectToVoid()
Method Detail

with

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

from

public static ObjectToVoid from(Function f)

A wrapper that calls the given arbitrary function.

Note:


bindArgs

public static ObjectToVoid 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 ObjectToVoid 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.