Record Class AbstractEnumBeanIntrospectionAndReference.EnumConstantRef<E extends Enum<E>>

java.lang.Object
java.lang.Record
io.micronaut.inject.beans.AbstractEnumBeanIntrospectionAndReference.EnumConstantRef<E>
All Implemented Interfaces:
AnnotationMetadata, AnnotationMetadataDelegate, AnnotationMetadataProvider, AnnotationSource, EnumBeanIntrospection.EnumConstant<E>
Enclosing class:
AbstractEnumBeanIntrospectionAndReference<E extends Enum<E>>

@Internal @Deprecated public static record AbstractEnumBeanIntrospectionAndReference.EnumConstantRef<E extends Enum<E>>(E extends Enum<E> value, @NonNull AnnotationMetadata annotationMetadata) extends Record implements EnumBeanIntrospection.EnumConstant<E>
Enum value compile-time data container.
  • Constructor Details

    • EnumConstantRef

      public EnumConstantRef(@NonNull E value, @NonNull @NonNull AnnotationMetadata annotationMetadata)
      Deprecated.
      Creates an instance of a EnumConstantRef record class.
      Parameters:
      value - the value for the value record component
      annotationMetadata - the value for the annotationMetadata record component
  • Method Details

    • getValue

      @NonNull public E getValue()
      Deprecated.
      Specified by:
      getValue in interface EnumBeanIntrospection.EnumConstant<E extends Enum<E>>
      Returns:
      The instance value.
    • getAnnotationMetadata

      @NonNull public @NonNull AnnotationMetadata getAnnotationMetadata()
      Deprecated.
      Description copied from interface: AnnotationMetadataProvider
      Supplies the metadata. Defaults to AnnotationMetadata.EMPTY_METADATA.
      Specified by:
      getAnnotationMetadata in interface AnnotationMetadataProvider
      Returns:
      The AnnotationMetadata
    • toString

      public final String toString()
      Deprecated.
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Deprecated.
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Deprecated.
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • value

      @NonNull public E value()
      Deprecated.
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • annotationMetadata

      @NonNull public @NonNull AnnotationMetadata annotationMetadata()
      Deprecated.
      Returns the value of the annotationMetadata record component.
      Returns:
      the value of the annotationMetadata record component