Class Annotation.BuilderBase.AnnotationImpl

java.lang.Object
io.helidon.common.types.Annotation.BuilderBase.AnnotationImpl
All Implemented Interfaces:
Prototype.Api, Annotation, Comparable<Annotation>
Enclosing class:
Annotation.BuilderBase<BUILDER extends Annotation.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Annotation>

protected static class Annotation.BuilderBase.AnnotationImpl extends Object implements Annotation
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Field Details

  • Constructor Details

    • AnnotationImpl

      protected AnnotationImpl(Annotation.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • compareTo

      public int compareTo(Annotation o)
      Specified by:
      compareTo in interface Comparable<Annotation>
    • typeName

      public TypeName typeName()
    • values

      public Map<String,Object> values()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • value

      default Optional<String> value()
      The value property.
      Returns:
      the string value of value property
    • getValue

      default Optional<String> getValue(String property)
      Get a value of an annotation property.
      Parameters:
      property - name of the annotation property
      Returns:
      string value of the property
    • objectValue

      default Optional<Object> objectValue()
      Value of the annotation as an object. The type can be either String, or any primitive type, or Annotation, or list of these.
      Returns:
      object value
    • objectValue

      default Optional<Object> objectValue(String property)
      Value of the annotation property as an object. The type can be either String, or any primitive type, or Annotation, or list of these.
      Parameters:
      property - name of the annotation property
      Returns:
      object value
    • stringValue

      default Optional<String> stringValue()
      Typed value of the property "value".
      Returns:
      value if present
    • stringValue

      default Optional<String> stringValue(String property)
      Typed value of a named property.
      Parameters:
      property - name of the annotation property
      Returns:
      value if present
    • stringValues

      default Optional<List<String>> stringValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • stringValues

      default Optional<List<String>> stringValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Parameters:
      property - name of the annotation property
      Returns:
      list of defined values if present
    • intValue

      default Optional<Integer> intValue()
      Typed value of the property "value".
      Returns:
      value if present
    • intValue

      default Optional<Integer> intValue(String property)
      Typed value of a named property.
      Parameters:
      property - name of the annotation property
      Returns:
      value if present
    • intValues

      default Optional<List<Integer>> intValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • intValues

      default Optional<List<Integer>> intValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Parameters:
      property - name of the annotation property
      Returns:
      list of defined values if present
    • longValue

      default Optional<Long> longValue()
      Typed value of the property "value".
      Returns:
      value if present
    • longValue

      default Optional<Long> longValue(String property)
      Typed value of a named property.
      Parameters:
      property - name of the annotation property
      Returns:
      value if present
    • longValues

      default Optional<List<Long>> longValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • longValues

      default Optional<List<Long>> longValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Parameters:
      property - name of the annotation property
      Returns:
      list of defined values if present
    • booleanValue

      default Optional<Boolean> booleanValue()
      Typed value of the property "value".
      Returns:
      value if present
    • booleanValue

      default Optional<Boolean> booleanValue(String property)
      Typed value of a named property.
      Parameters:
      property - name of the annotation property
      Returns:
      value if present
    • booleanValues

      default Optional<List<Boolean>> booleanValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • booleanValues

      default Optional<List<Boolean>> booleanValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Parameters:
      property - name of the annotation property
      Returns:
      list of defined values if present
    • byteValue

      default Optional<Byte> byteValue()
      Typed value of the property "value".
      Returns:
      value if present
    • byteValue

      default Optional<Byte> byteValue(String property)
      Typed value of a named property.
      Parameters:
      property - name of the annotation property
      Returns:
      value if present
    • byteValues

      default Optional<List<Byte>> byteValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • byteValues

      default Optional<List<Byte>> byteValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Parameters:
      property - name of the annotation property
      Returns:
      list of defined values if present
    • charValue

      default Optional<Character> charValue()
      Typed value of the property "value".
      Returns:
      value if present
    • charValue

      default Optional<Character> charValue(String property)
      Typed value of a named property.
      Parameters:
      property - name of the annotation property
      Returns:
      value if present
    • charValues

      default Optional<List<Character>> charValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • charValues

      default Optional<List<Character>> charValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Parameters:
      property - name of the annotation property
      Returns:
      list of defined values if present
    • shortValue

      default Optional<Short> shortValue()
      Typed value of the property "value".
      Returns:
      value if present
    • shortValue

      default Optional<Short> shortValue(String property)
      Typed value of a named property.
      Parameters:
      property - name of the annotation property
      Returns:
      value if present
    • shortValues

      default Optional<List<Short>> shortValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • shortValues

      default Optional<List<Short>> shortValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Parameters:
      property - name of the annotation property
      Returns:
      list of defined values if present
    • floatValue

      default Optional<Float> floatValue()
      Typed value of the property "value".
      Returns:
      value if present
    • floatValue

      default Optional<Float> floatValue(String property)
      Typed value of a named property.
      Parameters:
      property - name of the annotation property
      Returns:
      value if present
    • floatValues

      default Optional<List<Float>> floatValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • floatValues

      default Optional<List<Float>> floatValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Parameters:
      property - name of the annotation property
      Returns:
      list of defined values if present
    • doubleValue

      default Optional<Double> doubleValue()
      Typed value of the property "value".
      Returns:
      value if present
    • doubleValue

      default Optional<Double> doubleValue(String property)
      Typed value of a named property.
      Parameters:
      property - name of the annotation property
      Returns:
      value if present
    • doubleValues

      default Optional<List<Double>> doubleValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • doubleValues

      default Optional<List<Double>> doubleValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Parameters:
      property - name of the annotation property
      Returns:
      list of defined values if present
    • classValue

      default Optional<Class<?>> classValue()
      Typed value of the property "value".
      Returns:
      value if present
    • classValue

      default Optional<Class<?>> classValue(String property)
      Typed value of a named property.
      Parameters:
      property - name of the annotation property
      Returns:
      value if present
    • classValues

      default Optional<List<Class<?>>> classValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • classValues

      default Optional<List<Class<?>>> classValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Parameters:
      property - name of the annotation property
      Returns:
      list of defined values if present
    • typeValue

      default Optional<TypeName> typeValue()
      Typed value of the property "value". Alternative for classValue().
      Returns:
      value if present
    • typeValue

      default Optional<TypeName> typeValue(String property)
      Typed value of a named property. Alternative for classValue(String).
      Parameters:
      property - name of the annotation property
      Returns:
      value if present
    • typeValues

      default Optional<List<TypeName>> typeValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property. Alternative for classValues().
      Returns:
      list of defined values if present
    • typeValues

      default Optional<List<TypeName>> typeValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property. Alternative for classValues(String).
      Parameters:
      property - name of the annotation property
      Returns:
      list of defined values if present
    • annotationValue

      default Optional<Annotation> annotationValue()
      Typed value of the property "value".
      Returns:
      value if present
    • annotationValue

      default Optional<Annotation> annotationValue(String property)
      Typed value of a named property.
      Parameters:
      property - name of the annotation property
      Returns:
      value if present
    • annotationValues

      default Optional<List<Annotation>> annotationValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • annotationValues

      default Optional<List<Annotation>> annotationValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Parameters:
      property - name of the annotation property
      Returns:
      list of defined values if present
    • enumValue

      default <T extends Enum<T>> Optional<T> enumValue(Class<T> type)
      Typed value of the property "value".
      Type Parameters:
      T - type of the enumeration
      Parameters:
      type - class of the enumeration
      Returns:
      value if present
    • enumValue

      default <T extends Enum<T>> Optional<T> enumValue(String property, Class<T> type)
      Typed value of a named property.
      Type Parameters:
      T - type of the enumeration
      Parameters:
      property - name of the annotation property
      type - class of the enumeration
      Returns:
      value if present
    • enumValues

      default <T extends Enum<T>> Optional<List<T>> enumValues(Class<T> type)
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Type Parameters:
      T - type of the enumeration
      Parameters:
      type - class of the enumeration
      Returns:
      list of defined values if present
    • enumValues

      default <T extends Enum<T>> Optional<List<T>> enumValues(String property, Class<T> type)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Type Parameters:
      T - type of the enumeration
      Parameters:
      property - name of the annotation property
      type - class of the enumeration
      Returns:
      list of defined values if present