Record Class CtxApiExt

java.lang.Object
java.lang.Record
dk.mada.jaxrs.generator.mpclient.api.tmpl.CtxApiExt
Record Components:
mpRestClientConfigKey - the optional micro profile rest client config key
mpProviders - the fully qualified class names of MP providers
isJspecify - true if jspecify Nullable annotations should be used
additionalAnnotations - a list of additional annotation lines

public record CtxApiExt(Optional<String> mpRestClientConfigKey, List<String> mpProviders, boolean isJspecify, List<String> additionalAnnotations) extends Record
Extended template data for a resource class.
  • Constructor Details

    • CtxApiExt

      public CtxApiExt(Optional<String> mpRestClientConfigKey, List<String> mpProviders, boolean isJspecify, List<String> additionalAnnotations)
      Creates an instance of a CtxApiExt record class.
      Parameters:
      mpRestClientConfigKey - the value for the mpRestClientConfigKey record component
      mpProviders - the value for the mpProviders record component
      isJspecify - the value for the isJspecify record component
      additionalAnnotations - the value for the additionalAnnotations record component
  • Method Details

    • toString

      public final String toString()
      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()
      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)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • mpRestClientConfigKey

      public Optional<String> mpRestClientConfigKey()
      Returns the value of the mpRestClientConfigKey record component.
      Returns:
      the value of the mpRestClientConfigKey record component
    • mpProviders

      public List<String> mpProviders()
      Returns the value of the mpProviders record component.
      Returns:
      the value of the mpProviders record component
    • isJspecify

      public boolean isJspecify()
      Returns the value of the isJspecify record component.
      Returns:
      the value of the isJspecify record component
    • additionalAnnotations

      public List<String> additionalAnnotations()
      Returns the value of the additionalAnnotations record component.
      Returns:
      the value of the additionalAnnotations record component