Package ch.raffael.meldioc.model.config
Class AnnotationAttribute.Builder
java.lang.Object
ch.raffael.meldioc.model.config.AnnotationAttribute.Builder
- Enclosing class:
AnnotationAttribute
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newAnnotationAttribute.defaultValue(io.vavr.control.Option<Object> opt) from(AnnotationAttribute instance) Fill a builder with attribute values from the providedAnnotationAttributeinstance.Initializes the value for thenameattribute.Initializes the value for thevalueTypeattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedAnnotationAttributeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
name
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
valueType
Initializes the value for thevalueTypeattribute.- Parameters:
valueType- The value for valueType- Returns:
thisbuilder for use in a chained invocation
-
defaultValue
-
defaultValue
-
unsetDefaultValue
-
build
Builds a newAnnotationAttribute.- Returns:
- An immutable instance of AnnotationAttribute
- Throws:
ch.raffael.meldioc.util.immutables.IllegalBuilderStateException- if any required attributes are missing
-