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 theadditionalAnnotations
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisJspecify
record component.Returns the value of thempProviders
record component.Returns the value of thempRestClientConfigKey
record component.final String
toString()
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 aCtxApiExt
record class.- Parameters:
mpRestClientConfigKey
- the value for thempRestClientConfigKey
record componentmpProviders
- the value for thempProviders
record componentisJspecify
- the value for theisJspecify
record componentadditionalAnnotations
- the value for theadditionalAnnotations
record 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 thempRestClientConfigKey
record component.- Returns:
- the value of the
mpRestClientConfigKey
record component
-
mpProviders
Returns the value of thempProviders
record component.- Returns:
- the value of the
mpProviders
record component
-
isJspecify
public boolean isJspecify()Returns the value of theisJspecify
record component.- Returns:
- the value of the
isJspecify
record component
-
additionalAnnotations
Returns the value of theadditionalAnnotations
record component.- Returns:
- the value of the
additionalAnnotations
record component
-