net.vidageek.mirror.set
Class FieldSetterByName
java.lang.Object
net.vidageek.mirror.set.FieldSetterByName
- All Implemented Interfaces:
- FieldSetter
public final class FieldSetterByName
- extends Object
- implements FieldSetter
This class is responsible for setting a value on a field choosen by its field
name.
- Author:
- jonasabreu
|
Method Summary |
void |
withValue(Object value)
Use this method to set a value on the wrapped field. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldSetterByName
public FieldSetterByName(ReflectionProvider provider,
String fieldName,
Object target,
Class<?> clazz)
withValue
public void withValue(Object value)
- Description copied from interface:
FieldSetter
- Use this method to set a value on the wrapped field.
- Specified by:
withValue in interface FieldSetter
- Parameters:
value - Value to be set.
Copyright © 2011 VidaGeek.net. All Rights Reserved.