Record Class DrivingLicense
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.DrivingLicense
- Record Components:
License- Kind of driver licence, i.e.: A, B1, etc
-
Constructor Summary
ConstructorsConstructorDescriptionDrivingLicense(@Pattern(regexp="[A-Z]{2}") @NotNull String Country, @NotNull String License) Creates an instance of aDrivingLicenserecord class. -
Method Summary
Modifier and TypeMethodDescription@Pattern(regexp="[A-Z]{2}") @NotNull StringCountry()Returns the value of theCountryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull StringLicense()Returns the value of theLicenserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DrivingLicense
public DrivingLicense(@Pattern(regexp="[A-Z]{2}") @NotNull @Pattern(regexp="[A-Z]{2}") @NotNull String Country, @NotNull @NotNull String License) Creates an instance of aDrivingLicenserecord class.- Parameters:
Country- the value for theCountryrecord componentLicense- the value for theLicenserecord 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
-
License
-