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 keympProviders- the fully qualified class names of MP providersisJspecify- true if jspecify Nullable annotations should be usedadditionalAnnotations- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalAnnotationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisJspecifyrecord component.Returns the value of thempProvidersrecord component.Returns the value of thempRestClientConfigKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CtxApiExt
public CtxApiExt(Optional<String> mpRestClientConfigKey, List<String> mpProviders, boolean isJspecify, List<String> additionalAnnotations) Creates an instance of aCtxApiExtrecord class.- Parameters:
mpRestClientConfigKey- the value for thempRestClientConfigKeyrecord componentmpProviders- the value for thempProvidersrecord componentisJspecify- the value for theisJspecifyrecord componentadditionalAnnotations- the value for theadditionalAnnotationsrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
mpRestClientConfigKey
Returns the value of thempRestClientConfigKeyrecord component.- Returns:
- the value of the
mpRestClientConfigKeyrecord component
-
mpProviders
Returns the value of thempProvidersrecord component.- Returns:
- the value of the
mpProvidersrecord component
-
isJspecify
public boolean isJspecify()Returns the value of theisJspecifyrecord component.- Returns:
- the value of the
isJspecifyrecord component
-
additionalAnnotations
Returns the value of theadditionalAnnotationsrecord component.- Returns:
- the value of the
additionalAnnotationsrecord component
-