Package de.cuioss.test.valueobjects.util
Class BuilderPropertyHelper
java.lang.Object
de.cuioss.test.valueobjects.util.BuilderPropertyHelper
Utility class for dealing with and the
PropertyBuilderConfig
and
PropertyBuilderConfigs
annotations.- Author:
- Oliver Wolff
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<PropertyBuilderConfig>
extractConfiguredPropertyBuilderConfigs
(Class<?> annotated) Checks the given type for the annotationPropertyBuilderConfig
andPropertyBuilderConfigs
and puts all found in the immutableSet
to be returnedstatic List<PropertyMetadata>
handleBuilderPropertyConfigAnnotations
(Class<?> annotated, List<PropertyMetadata> givenMetadata) Checks the given type for the annotationPropertyBuilderConfig
andPropertyBuilderConfigs
and puts all found in the immutableList
to be returned
-
Constructor Details
-
BuilderPropertyHelper
public BuilderPropertyHelper()
-
-
Method Details
-
handleBuilderPropertyConfigAnnotations
public static List<PropertyMetadata> handleBuilderPropertyConfigAnnotations(Class<?> annotated, List<PropertyMetadata> givenMetadata) Checks the given type for the annotationPropertyBuilderConfig
andPropertyBuilderConfigs
and puts all found in the immutableList
to be returned- Parameters:
annotated
- the class that may or may not provide the annotations, must not be nullgivenMetadata
- must not be null- Returns:
- immutable
List
of foundPropertyMetadata
elements derived by the annotations.
-
extractConfiguredPropertyBuilderConfigs
public static Set<PropertyBuilderConfig> extractConfiguredPropertyBuilderConfigs(Class<?> annotated) Checks the given type for the annotationPropertyBuilderConfig
andPropertyBuilderConfigs
and puts all found in the immutableSet
to be returned- Parameters:
annotated
- the class that may or may not provide the annotations, must not be null- Returns:
- immutable
Set
of foundPropertyBuilderConfig
elements.
-