public enum PropertySetterFactory extends Enum<PropertySetterFactory>
Factory that creates a PropertySetter based on a parameter type. The parameter must be annotated with
a supported annotation:
| Enum Constant and Description |
|---|
INSTANCE
The single instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T> PropertySetter<T> |
create(AbstractObjectBuilder<T> builder,
Annotation annotation)
Creates a new
PropertySetter for the given builder and the specified parameter annotation. |
static PropertySetterFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertySetterFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertySetterFactory INSTANCE
public static PropertySetterFactory[] values()
for (PropertySetterFactory c : PropertySetterFactory.values()) System.out.println(c);
public static PropertySetterFactory valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic <T> PropertySetter<T> create(AbstractObjectBuilder<T> builder, Annotation annotation)
Creates a new PropertySetter for the given builder and the specified parameter annotation.
T - the property setter typebuilder - the builderannotation - the parameter annotationPropertySetterCopyright © 2012-2015. All Rights Reserved.