Class Parameter.Builder
java.lang.Object
io.spring.initializr.generator.language.Parameter.Builder
- Enclosing class:
- Parameter
Builder for creating a
Parameter
.-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.annotate
(ClassName className, Consumer<Annotation.Builder> annotation) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofsingleAnnotate(ClassName, Consumer)
andsingleAnnotate(ClassName)
build()
repeatableAnnotate
(ClassName className) Annotate the parameter with the specified repeatable annotation.repeatableAnnotate
(ClassName className, Consumer<Annotation.Builder> annotation) Annotate the parameter with the specified repeatable annotation, customized by the specified consumer.singleAnnotate
(ClassName className) Annotate the parameter with the specified single annotation.singleAnnotate
(ClassName className, Consumer<Annotation.Builder> annotation) Annotate the parameter with the specified single annotation, customized by the specified consumer.Specify thetype
of the parameter.Specify thetype
of the parameter.Specify the type of the parameter.
-
Method Details
-
type
Specify thetype
of the parameter.- Parameters:
type
- the type- Returns:
- this for method chaining
-
type
Specify thetype
of the parameter.- Parameters:
type
- the type- Returns:
- this for method chaining
-
type
Specify the type of the parameter.- Parameters:
type
- the type- Returns:
- this for method chaining
-
annotate
Deprecated, for removal: This API element is subject to removal in a future version.in favor ofsingleAnnotate(ClassName)
andrepeatableAnnotate(ClassName)
Annotate the parameter with the specified annotation.- Parameters:
className
- the class of the annotation- Returns:
- this for method chaining
-
annotate
@Deprecated(forRemoval=true) public Parameter.Builder annotate(ClassName className, Consumer<Annotation.Builder> annotation) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofsingleAnnotate(ClassName, Consumer)
andsingleAnnotate(ClassName)
Annotate the parameter with the specified annotation, customized by the specified consumer.- Parameters:
className
- the class of the annotationannotation
- a consumer of the builder- Returns:
- this for method chaining
-
singleAnnotate
Annotate the parameter with the specified single annotation.- Parameters:
className
- the class of the annotation- Returns:
- this for method chaining
-
singleAnnotate
public Parameter.Builder singleAnnotate(ClassName className, Consumer<Annotation.Builder> annotation) Annotate the parameter with the specified single annotation, customized by the specified consumer.- Parameters:
className
- the class of the annotationannotation
- a consumer of the builder- Returns:
- this for method chaining
-
repeatableAnnotate
Annotate the parameter with the specified repeatable annotation.- Parameters:
className
- the class of the annotation- Returns:
- this for method chaining
-
repeatableAnnotate
public Parameter.Builder repeatableAnnotate(ClassName className, Consumer<Annotation.Builder> annotation) Annotate the parameter with the specified repeatable annotation, customized by the specified consumer.- Parameters:
className
- the class of the annotationannotation
- a consumer of the builder- Returns:
- this for method chaining
-
build
-
singleAnnotate(ClassName)
andrepeatableAnnotate(ClassName)