Package dk.mada.jaxrs.generator.mpclient
Record Class GeneratorOpts.LeakedParserOpts
java.lang.Object
java.lang.Record
dk.mada.jaxrs.generator.mpclient.GeneratorOpts.LeakedParserOpts
- Record Components:
isJseOffsetDateTime
- true if the OffsetDateTime DTO is represented by JSEisJseLocalDateTime
- true if the LocalDateTime DTO is represented by JSEisJseLocalDate
- true if the LocalDate DTO is represented by JSE
- Enclosing class:
- GeneratorOpts
public static record GeneratorOpts.LeakedParserOpts(boolean isJseOffsetDateTime, boolean isJseLocalDateTime, boolean isJseLocalDate)
extends Record
Parser options leaked into the generator. These should be eventually be removed when possible.
-
Constructor Summary
ConstructorDescriptionLeakedParserOpts
(boolean isJseOffsetDateTime, boolean isJseLocalDateTime, boolean isJseLocalDate) Creates an instance of aLeakedParserOpts
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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 theisJseLocalDate
record component.boolean
Returns the value of theisJseLocalDateTime
record component.boolean
Returns the value of theisJseOffsetDateTime
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
LeakedParserOpts
public LeakedParserOpts(boolean isJseOffsetDateTime, boolean isJseLocalDateTime, boolean isJseLocalDate) Creates an instance of aLeakedParserOpts
record class.- Parameters:
isJseOffsetDateTime
- the value for theisJseOffsetDateTime
record componentisJseLocalDateTime
- the value for theisJseLocalDateTime
record componentisJseLocalDate
- the value for theisJseLocalDate
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. All components in this record class are compared with '=='. -
isJseOffsetDateTime
public boolean isJseOffsetDateTime()Returns the value of theisJseOffsetDateTime
record component.- Returns:
- the value of the
isJseOffsetDateTime
record component
-
isJseLocalDateTime
public boolean isJseLocalDateTime()Returns the value of theisJseLocalDateTime
record component.- Returns:
- the value of the
isJseLocalDateTime
record component
-
isJseLocalDate
public boolean isJseLocalDate()Returns the value of theisJseLocalDate
record component.- Returns:
- the value of the
isJseLocalDate
record component
-