Package dk.mada.jaxrs.openapi
Record Class Parser.LeakedGeneratorOpts
java.lang.Object
java.lang.Record
dk.mada.jaxrs.openapi.Parser.LeakedGeneratorOpts
- Record Components:
dateTimeType
- the type used to represent OpenApi date-timedtoPackage
- the DTO packageisUseMultipartBody
- a flag for use of multipart formsnoFormatNumberType
- the type to use for no-format numbers
- Enclosing class:
- Parser
public static record Parser.LeakedGeneratorOpts(TypeDateTime dateTimeType, String dtoPackage, boolean isUseMultipartBody, Type noFormatNumberType)
extends Record
Generator options that have leaked into the parser. These should be eventually be removed when possible.
-
Constructor Summary
ConstructorDescriptionLeakedGeneratorOpts
(TypeDateTime dateTimeType, String dtoPackage, boolean isUseMultipartBody, Type noFormatNumberType) Creates an instance of aLeakedGeneratorOpts
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedateTimeType
record component.Returns the value of thedtoPackage
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 theisUseMultipartBody
record component.Returns the value of thenoFormatNumberType
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
LeakedGeneratorOpts
public LeakedGeneratorOpts(TypeDateTime dateTimeType, String dtoPackage, boolean isUseMultipartBody, Type noFormatNumberType) Creates an instance of aLeakedGeneratorOpts
record class.- Parameters:
dateTimeType
- the value for thedateTimeType
record componentdtoPackage
- the value for thedtoPackage
record componentisUseMultipartBody
- the value for theisUseMultipartBody
record componentnoFormatNumberType
- the value for thenoFormatNumberType
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 '=='. -
dateTimeType
Returns the value of thedateTimeType
record component.- Returns:
- the value of the
dateTimeType
record component
-
dtoPackage
Returns the value of thedtoPackage
record component.- Returns:
- the value of the
dtoPackage
record component
-
isUseMultipartBody
public boolean isUseMultipartBody()Returns the value of theisUseMultipartBody
record component.- Returns:
- the value of the
isUseMultipartBody
record component
-
noFormatNumberType
Returns the value of thenoFormatNumberType
record component.- Returns:
- the value of the
noFormatNumberType
record component
-