Record Class CtxEnum
java.lang.Object
java.lang.Record
dk.mada.jaxrs.generator.mpclient.dto.tmpl.CtxEnum
- Record Components:
enumVars- list of enumeration entries
Context passed to Mustache when compiling an enum.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordContext describing an enumeration entry. -
Constructor Summary
ConstructorsConstructorDescriptionCtxEnum(List<CtxEnum.CtxEnumEntry> enumVars) Creates an instance of aCtxEnumrecord class. -
Method Summary
Modifier and TypeMethodDescriptionenumVars()Returns the value of theenumVarsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CtxEnum
Creates an instance of aCtxEnumrecord class.- Parameters:
enumVars- the value for theenumVarsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
enumVars
-