Top Description Methods
com.opencsv.bean.function

public Interface AssignmentInvoker<T, U>

Annotations
@FunctionalInterface
Type Parameters
<T>
The type of the object upon which the assignment code is to be invoked
<U>
The type of the value that is to be assigned
Imports
java.lang.reflect.InvocationTargetException

Functional interface for assigning a value to a field.

The field must be part of the code created for this functional interface, as there is no way to pass the field in during invocation.

This interface is almost identical to java.util.function.BiConsumer save the exceptions thrown, which is the reason for its existence.

Author
Andrew Rucker Jones
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public void
invoke(T
The object upon which the assignment method should be invoked
object
,
U
The value to assign to a member variable of the given object
value
)

Invoke the code to assign a value to a field.

Method Detail

invokeback to summary
public void invoke(T object, U value) throws IllegalAccessException, InvocationTargetException

Invoke the code to assign a value to a field.

Parameters
object:T

The object upon which the assignment method should be invoked

value:U

The value to assign to a member variable of the given object

Exceptions
IllegalAccessException:
If assignment causes a problem
InvocationTargetException:
If assignment causes a problem