Class AnnotationAttribute

java.lang.Object
ch.raffael.meldioc.model.config.AnnotationAttribute

public abstract class AnnotationAttribute extends Object
  • Method Details

    • builder

      public static AnnotationAttribute.Builder builder()
    • name

      public abstract String name()
    • valueType

      public abstract Class<?> valueType()
    • defaultValue

      public abstract io.vavr.control.Option<Object> defaultValue()
    • withName

      AnnotationAttribute withName(String value)
      Copy the current immutable object by setting a value for the name attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for name
      Returns:
      A modified copy of the this object
    • withValueType

      AnnotationAttribute withValueType(Class<?> value)
      Copy the current immutable object by setting a value for the valueType attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for valueType
      Returns:
      A modified copy of the this object
    • withDefaultValue

      AnnotationAttribute withDefaultValue(io.vavr.control.Option<Object> value)
      Copy the current immutable object by setting a value for the defaultValue attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for defaultValue
      Returns:
      A modified copy of the this object