Class AnnotationAttribute.Builder

java.lang.Object
ch.raffael.meldioc.model.config.AnnotationAttribute.Builder
Enclosing class:
AnnotationAttribute

public static final class AnnotationAttribute.Builder extends Object
  • Method Details

    • from

      public final AnnotationAttribute.Builder from(AnnotationAttribute instance)
      Fill a builder with attribute values from the provided AnnotationAttribute instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • name

      public final AnnotationAttribute.Builder name(String name)
      Initializes the value for the name attribute.
      Parameters:
      name - The value for name
      Returns:
      this builder for use in a chained invocation
    • valueType

      public final AnnotationAttribute.Builder valueType(Class<?> valueType)
      Initializes the value for the valueType attribute.
      Parameters:
      valueType - The value for valueType
      Returns:
      this builder for use in a chained invocation
    • defaultValue

      public AnnotationAttribute.Builder defaultValue(io.vavr.control.Option<Object> opt)
    • defaultValue

      public AnnotationAttribute.Builder defaultValue(Object x)
    • unsetDefaultValue

      public AnnotationAttribute.Builder unsetDefaultValue()
    • build

      public AnnotationAttribute build()
      Builds a new AnnotationAttribute.
      Returns:
      An immutable instance of AnnotationAttribute
      Throws:
      ch.raffael.meldioc.util.immutables.IllegalBuilderStateException - if any required attributes are missing