Class GenericType.OfPrimitive

java.lang.Object
io.quarkus.gizmo2.GenericType
io.quarkus.gizmo2.GenericType.OfPrimitive
Enclosing class:
GenericType

public static final class GenericType.OfPrimitive extends GenericType
A generic type corresponding to a primitive type, including void.
  • Method Details

    • withAnnotations

      public GenericType.OfPrimitive withAnnotations(Consumer<AnnotatableCreator> builder)
      Description copied from class: GenericType
      Returns this generic type with annotations added by the given builder (not null).
      Overrides:
      withAnnotations in class GenericType
      Parameters:
      builder - the annotation builder (must not be null)
      Returns:
      this generic type with annotations added by the given builder (not null)
    • withAnnotation

      public <A extends Annotation> GenericType.OfPrimitive withAnnotation(Class<A> annotationType)
      Description copied from class: GenericType
      Returns this generic type with the given additional annotation (not null).
      Overrides:
      withAnnotation in class GenericType
      Parameters:
      annotationType - the annotation type (must not be null)
      Returns:
      this generic type with the given additional annotation (not null)
    • withAnnotation

      public <A extends Annotation> GenericType.OfPrimitive withAnnotation(Class<A> annotationType, Consumer<AnnotationCreator<A>> builder)
      Description copied from class: GenericType
      Returns this generic type with the given additional annotation (not null).
      Overrides:
      withAnnotation in class GenericType
      Parameters:
      annotationType - the annotation type (must not be null)
      builder - the builder for the given annotation type (must not be null)
      Returns:
      this generic type with the given additional annotation (not null)
    • isRaw

      public boolean isRaw()
      Description copied from class: GenericType
      Returns true if this type has no type arguments, or false if it has type arguments.
      Specified by:
      isRaw in class GenericType
      Returns:
      true if this type has no type arguments, or false if it has type arguments
    • equals

      public boolean equals(GenericType other)
      Description copied from class: GenericType
      Returns true if this object is equal to the given object, or false if it is not.
      Overrides:
      equals in class GenericType
      Returns:
      true if this object is equal to the given object, or false if it is not
    • equals

      public boolean equals(GenericType.OfPrimitive other)
      Returns true if this object is equal to the given object, or false if it is not.
      Returns:
      true if this object is equal to the given object, or false if it is not
    • hashCode

      public int hashCode()
      Description copied from class: GenericType
      Returns the hash code of this generic type.
      Overrides:
      hashCode in class GenericType
      Returns:
      the hash code of this generic type
    • toString

      public StringBuilder toString(StringBuilder b)
      Description copied from class: GenericType
      Append a string representation of this type to the given string builder.
      Overrides:
      toString in class GenericType
      Parameters:
      b - the string builder (must not be null)
      Returns:
      the string builder that was passed in (not null)
    • desc

      public ClassDesc desc()
      Description copied from class: GenericType
      Returns the erased type descriptor for this generic type (not null).
      Specified by:
      desc in class GenericType
      Returns:
      the erased type descriptor for this generic type (not null)