- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
PrototypeConstant.BuilderBase.PrototypeConstantImpl
Custom constant definition. This constant will be code generated on the prototype interface.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forPrototypeConstant.static classPrototypeConstant.BuilderBase<BUILDER extends PrototypeConstant.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends PrototypeConstant> Fluent API builder base forPrototypeConstant. -
Method Summary
Modifier and TypeMethodDescriptionstatic PrototypeConstant.Builderbuilder()Create a new fluent API builder to customize configuration.static PrototypeConstant.Builderbuilder(PrototypeConstant instance) Create a new fluent API builder from an existing instance.content()Consumer of the content to generate the constant.javadoc()Javadoc for the constant.name()Name of the constant.type()Type of the constant.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
name
String name()Name of the constant.- Returns:
- field name
-
type
TypeName type()Type of the constant.- Returns:
- field type
-
javadoc
Javadoc javadoc()Javadoc for the constant.- Returns:
- javadoc
-
content
Consumer<ContentBuilder<?>> content()Consumer of the content to generate the constant.- Returns:
- content builder consumer to generate the constant value
-