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 TypeMethodDescriptionAnnotate the parameter with the specified annotation.annotate
(ClassName className, Consumer<Annotation.Builder> annotation) Annotate the parameter with the specified annotation, customized by the specified consumer.build()
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
Annotate the parameter with the specified annotation.- Parameters:
className
- the class of the annotation- Returns:
- this for method chaining
-
annotate
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
-
build
-