Record Class Personal
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.Personal
- Record Components:
givenName- Given name. It can be multiple words for compound namesfamilyName- Family name. Depending on cultures, this field can be very differentnativeLanguage- First learned language. Or preferred language if you had manyAvatar- Avatar. Image used to represent you without being an actual photoNationalities- Set of nationalities. If none is supplied, the birth of country is used
public record Personal(@NotNull String givenName, @NotNull String familyName, @Pattern(regexp="[a-z]{2}") @NotNull String nativeLanguage, Personal.Pronoun Pronoun, Personal.Gender Gender, String Birth, @Pattern(regexp="[A-Z]{2}") String birthCountry, String Alias, String Photo, String Avatar, Set<@Pattern(regexp="[A-Z]{2}") String> Nationalities, List<Disability> Disabilities, List<DrivingLicense> drivingLicenses, boolean ownVehicle, List<IdDocument> Ids)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPersonal(@NotNull String givenName, @NotNull String familyName, @Pattern(regexp="[a-z]{2}") @NotNull String nativeLanguage, Personal.Pronoun Pronoun, Personal.Gender Gender, String Birth, @Pattern(regexp="[A-Z]{2}") String birthCountry, String Alias, String Photo, String Avatar, Set<@Pattern(regexp="[A-Z]{2}") String> Nationalities, List<Disability> Disabilities, List<DrivingLicense> drivingLicenses, boolean ownVehicle, List<IdDocument> Ids) Creates an instance of aPersonalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionAlias()Returns the value of theAliasrecord component.Avatar()Returns the value of theAvatarrecord component.Birth()Returns the value of theBirthrecord component.@Pattern(regexp="[A-Z]{2}") StringReturns the value of thebirthCountryrecord component.Returns the value of theDisabilitiesrecord component.Returns the value of thedrivingLicensesrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull StringReturns the value of thefamilyNamerecord component.Gender()Returns the value of theGenderrecord component.@NotNull StringReturns the value of thegivenNamerecord component.final inthashCode()Returns a hash code value for this object.Ids()Returns the value of theIdsrecord component.Returns the value of theNationalitiesrecord component.@Pattern(regexp="[a-z]{2}") @NotNull StringReturns the value of thenativeLanguagerecord component.booleanReturns the value of theownVehiclerecord component.Photo()Returns the value of thePhotorecord component.Pronoun()Returns the value of thePronounrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Personal
public Personal(@NotNull @NotNull String givenName, @NotNull @NotNull String familyName, @Pattern(regexp="[a-z]{2}") @NotNull @Pattern(regexp="[a-z]{2}") @NotNull String nativeLanguage, Personal.Pronoun Pronoun, Personal.Gender Gender, String Birth, @Pattern(regexp="[A-Z]{2}") @Pattern(regexp="[A-Z]{2}") String birthCountry, String Alias, String Photo, String Avatar, Set<@Pattern(regexp="[A-Z]{2}") String> Nationalities, List<Disability> Disabilities, List<DrivingLicense> drivingLicenses, boolean ownVehicle, List<IdDocument> Ids) Creates an instance of aPersonalrecord class.- Parameters:
givenName- the value for thegivenNamerecord componentfamilyName- the value for thefamilyNamerecord componentnativeLanguage- the value for thenativeLanguagerecord componentPronoun- the value for thePronounrecord componentGender- the value for theGenderrecord componentBirth- the value for theBirthrecord componentbirthCountry- the value for thebirthCountryrecord componentAlias- the value for theAliasrecord componentPhoto- the value for thePhotorecord componentAvatar- the value for theAvatarrecord componentNationalities- the value for theNationalitiesrecord componentDisabilities- the value for theDisabilitiesrecord componentdrivingLicenses- the value for thedrivingLicensesrecord componentownVehicle- the value for theownVehiclerecord componentIds- the value for theIdsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
givenName
-
familyName
Returns the value of thefamilyNamerecord component.- Returns:
- the value of the
familyNamerecord component
-
nativeLanguage
@Pattern(regexp="[a-z]{2}") @NotNull public @Pattern(regexp="[a-z]{2}") @NotNull String nativeLanguage()Returns the value of thenativeLanguagerecord component.- Returns:
- the value of the
nativeLanguagerecord component
-
Pronoun
Returns the value of thePronounrecord component.- Returns:
- the value of the
Pronounrecord component
-
Gender
Returns the value of theGenderrecord component.- Returns:
- the value of the
Genderrecord component
-
Birth
Returns the value of theBirthrecord component.- Returns:
- the value of the
Birthrecord component
-
birthCountry
Returns the value of thebirthCountryrecord component.- Returns:
- the value of the
birthCountryrecord component
-
Alias
Returns the value of theAliasrecord component.- Returns:
- the value of the
Aliasrecord component
-
Photo
Returns the value of thePhotorecord component.- Returns:
- the value of the
Photorecord component
-
Avatar
-
Nationalities
Returns the value of theNationalitiesrecord component.- Returns:
- the value of the
Nationalitiesrecord component
-
Disabilities
Returns the value of theDisabilitiesrecord component.- Returns:
- the value of the
Disabilitiesrecord component
-
drivingLicenses
Returns the value of thedrivingLicensesrecord component.- Returns:
- the value of the
drivingLicensesrecord component
-
ownVehicle
public boolean ownVehicle()Returns the value of theownVehiclerecord component.- Returns:
- the value of the
ownVehiclerecord component
-
Ids
Returns the value of theIdsrecord component.- Returns:
- the value of the
Idsrecord component
-