public final class ReflectionFieldSetter<VAL,TARGET> extends Object implements PropertySetter<VAL,TARGET>
null values are not set.| Modifier and Type | Method and Description |
|---|---|
static <V,T> ReflectionFieldSetter<V,T> |
forField(String name)
Creates a
ReflectionFieldSetter with mandatory values, ie the ReflectionFieldSetter shall try to
set any given value. |
static <V,T> ReflectionFieldSetter<V,T> |
forOptionalField(String name)
Creates a
ReflectionFieldSetter with optional values, ie the ReflectionFieldSetter shall discard
any null value. |
void |
set(VAL value,
TARGET target) |
public static <V,T> ReflectionFieldSetter<V,T> forField(@NotNull String name)
ReflectionFieldSetter with mandatory values, ie the ReflectionFieldSetter shall try to
set any given value.name - name of the field.public static <V,T> ReflectionFieldSetter<V,T> forOptionalField(@NotNull String name)
ReflectionFieldSetter with optional values, ie the ReflectionFieldSetter shall discard
any null value.name - public void set(VAL value, TARGET target)
set in interface PropertySetter<VAL,TARGET>PropertySetter.set(java.lang.Object, java.lang.Object)Copyright © 2010–2017 Henix, henix.fr. All rights reserved.