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 names
familyName - Family name. Depending on cultures, this field can be very different
nativeLanguage - First learned language. Or preferred language if you had many
Avatar - Avatar. Image used to represent you without being an actual photo
Nationalities - 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
  • 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 a Personal record class.
      Parameters:
      givenName - the value for the givenName record component
      familyName - the value for the familyName record component
      nativeLanguage - the value for the nativeLanguage record component
      Pronoun - the value for the Pronoun record component
      Gender - the value for the Gender record component
      Birth - the value for the Birth record component
      birthCountry - the value for the birthCountry record component
      Alias - the value for the Alias record component
      Photo - the value for the Photo record component
      Avatar - the value for the Avatar record component
      Nationalities - the value for the Nationalities record component
      Disabilities - the value for the Disabilities record component
      drivingLicenses - the value for the drivingLicenses record component
      ownVehicle - the value for the ownVehicle record component
      Ids - the value for the Ids record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • givenName

      @NotNull public @NotNull String givenName()
      Returns the value of the givenName record component.
      Returns:
      the value of the givenName record component
    • familyName

      @NotNull public @NotNull String familyName()
      Returns the value of the familyName record component.
      Returns:
      the value of the familyName record component
    • nativeLanguage

      @Pattern(regexp="[a-z]{2}") @NotNull public @Pattern(regexp="[a-z]{2}") @NotNull String nativeLanguage()
      Returns the value of the nativeLanguage record component.
      Returns:
      the value of the nativeLanguage record component
    • Pronoun

      public Personal.Pronoun Pronoun()
      Returns the value of the Pronoun record component.
      Returns:
      the value of the Pronoun record component
    • Gender

      public Personal.Gender Gender()
      Returns the value of the Gender record component.
      Returns:
      the value of the Gender record component
    • Birth

      public String Birth()
      Returns the value of the Birth record component.
      Returns:
      the value of the Birth record component
    • birthCountry

      @Pattern(regexp="[A-Z]{2}") public @Pattern(regexp="[A-Z]{2}") String birthCountry()
      Returns the value of the birthCountry record component.
      Returns:
      the value of the birthCountry record component
    • Alias

      public String Alias()
      Returns the value of the Alias record component.
      Returns:
      the value of the Alias record component
    • Photo

      public String Photo()
      Returns the value of the Photo record component.
      Returns:
      the value of the Photo record component
    • Avatar

      public String Avatar()
      Returns the value of the Avatar record component.
      Returns:
      the value of the Avatar record component
    • Nationalities

      public Set<@Pattern(regexp="[A-Z]{2}") String> Nationalities()
      Returns the value of the Nationalities record component.
      Returns:
      the value of the Nationalities record component
    • Disabilities

      public List<Disability> Disabilities()
      Returns the value of the Disabilities record component.
      Returns:
      the value of the Disabilities record component
    • drivingLicenses

      public List<DrivingLicense> drivingLicenses()
      Returns the value of the drivingLicenses record component.
      Returns:
      the value of the drivingLicenses record component
    • ownVehicle

      public boolean ownVehicle()
      Returns the value of the ownVehicle record component.
      Returns:
      the value of the ownVehicle record component
    • Ids

      public List<IdDocument> Ids()
      Returns the value of the Ids record component.
      Returns:
      the value of the Ids record component