Record Class IdDocument
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.IdDocument
- Record Components:
Document- Document name. It could be a national document name, or passport
-
Constructor Summary
ConstructorsConstructorDescriptionIdDocument(@Pattern(regexp="[A-Z]{2}") @NotNull String Country, @NotNull String Document, @NotNull String Id) Creates an instance of aIdDocumentrecord class. -
Method Summary
Modifier and TypeMethodDescription@Pattern(regexp="[A-Z]{2}") @NotNull StringCountry()Returns the value of theCountryrecord component.@NotNull StringDocument()Returns the value of theDocumentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull StringId()Returns the value of theIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IdDocument
public IdDocument(@Pattern(regexp="[A-Z]{2}") @NotNull @Pattern(regexp="[A-Z]{2}") @NotNull String Country, @NotNull @NotNull String Document, @NotNull @NotNull String Id) Creates an instance of aIdDocumentrecord class.- Parameters:
Country- the value for theCountryrecord componentDocument- the value for theDocumentrecord componentId- the value for theIdrecord 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). -
Country
Returns the value of theCountryrecord component.- Returns:
- the value of the
Countryrecord component
-
Document
-
Id
Returns the value of theIdrecord component.- Returns:
- the value of the
Idrecord component
-