Class DynamicType.Builder.FieldDefinition.Optional.AbstractBase<U>

    • Constructor Detail

      • AbstractBase

        public AbstractBase()
    • Method Detail

      • annotateField

        public DynamicType.Builder.FieldDefinition.Optional<U> annotateField​(java.lang.annotation.Annotation... annotation)
        Annotates the previously defined or matched field with the supplied annotations.
        Specified by:
        annotateField in interface DynamicType.Builder.FieldDefinition<U>
        Parameters:
        annotation - The annotations to declare on the previously defined or matched field.
        Returns:
        A new builder that is equal to this builder but with the given annotations declared on the previously defined or matched field.
      • annotateField

        public DynamicType.Builder.FieldDefinition.Optional<U> annotateField​(java.util.List<? extends java.lang.annotation.Annotation> annotations)
        Annotates the previously defined or matched field with the supplied annotations.
        Specified by:
        annotateField in interface DynamicType.Builder.FieldDefinition<U>
        Parameters:
        annotations - The annotations to declare on the previously defined or matched field.
        Returns:
        A new builder that is equal to this builder but with the given annotations declared on the previously defined or matched field.