setField

public static void setField(Object instance, Field field, Object value)(source)

Sets the field to the specified value.

Parameters

instance

the object instance containing the field

field

the field instance to change its content

value

the new value of the field


public void setField(Field field, Object value)(source)

Sets a field value to the specified value.

Parameters

field

the field to modify

value

the new value of the field