Module io.helidon.common.types
Package io.helidon.common.types
Class DefaultAnnotationAndValue.Builder
java.lang.Object
io.helidon.common.types.DefaultAnnotationAndValue.Builder
- All Implemented Interfaces:
Builder<DefaultAnnotationAndValue.Builder,,DefaultAnnotationAndValue> Supplier<DefaultAnnotationAndValue>
- Direct Known Subclasses:
DefaultQualifierAndValue.Builder
- Enclosing class:
DefaultAnnotationAndValue
public static class DefaultAnnotationAndValue.Builder
extends Object
implements Builder<DefaultAnnotationAndValue.Builder,DefaultAnnotationAndValue>
Fluent API builder for
DefaultAnnotationAndValue.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance from this builder.type(Class<? extends Annotation> annoType) Annotation type name from annotation type.Set the type name.Set the value.Set the attribute key/value tuples.
-
Constructor Details
-
Builder
protected Builder()Default ctor.
-
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<DefaultAnnotationAndValue.Builder,DefaultAnnotationAndValue> - Returns:
- instance of the built type
-
typeName
Set the type name.- Parameters:
val- the new type name value- Returns:
- this fluent builder
-
value
Set the value.- Parameters:
val- the new value- Returns:
- this fluent builder
-
values
Set the attribute key/value tuples.- Parameters:
val- the new values- Returns:
- this fluent builder
-
type
Annotation type name from annotation type.- Parameters:
annoType- annotation class- Returns:
- updated builder
-