Interface AnnotationReference.Builder
- Enclosing interface:
- AnnotationReference
public static interface AnnotationReference.Builder
Creates an instance of
AnnotationReference.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newAnnotationReferencewith the values in the builder set.withTypeName(String typeName) Required: Specifies the name of the type of this annotation reference.Required: Specifies the value of a field with the given name.
-
Method Details
-
withTypeName
Required: Specifies the name of the type of this annotation reference.- Parameters:
typeName- the name of the type of this annotation reference. Cannot be null or empty- Returns:
- this
AnnotationReference.Builder
-
withValue
Required: Specifies the value of a field with the given name. The value class must match the Java class that backs theAnnotationReferenceValueTypeof the field.- Parameters:
fieldName- the name of the field to set value onvalue- the new value to set for the field. To remove an existing value, set to null.- Returns:
- this
AnnotationReference.Builder
-
build
AnnotationReference build()Builds a newAnnotationReferencewith the values in the builder set.- Returns:
- the completed
AnnotationReference
-