Record Class LanguageSkill

java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.LanguageSkill

public record LanguageSkill(@Pattern(regexp="[a-z]{2}") @NotNull String Language, @NotNull LanguageSkill.Listening Listening, @NotNull LanguageSkill.Reading Reading, @NotNull LanguageSkill.Spoken Spoken, @NotNull LanguageSkill.Written Written) extends Record
  • Constructor Details

    • LanguageSkill

      public LanguageSkill(@Pattern(regexp="[a-z]{2}") @NotNull @Pattern(regexp="[a-z]{2}") @NotNull String Language, @NotNull @NotNull LanguageSkill.Listening Listening, @NotNull @NotNull LanguageSkill.Reading Reading, @NotNull @NotNull LanguageSkill.Spoken Spoken, @NotNull @NotNull LanguageSkill.Written Written)
      Creates an instance of a LanguageSkill record class.
      Parameters:
      Language - the value for the Language record component
      Listening - the value for the Listening record component
      Reading - the value for the Reading record component
      Spoken - the value for the Spoken record component
      Written - the value for the Written 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • Language

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

      @NotNull public @NotNull LanguageSkill.Listening Listening()
      Returns the value of the Listening record component.
      Returns:
      the value of the Listening record component
    • Reading

      @NotNull public @NotNull LanguageSkill.Reading Reading()
      Returns the value of the Reading record component.
      Returns:
      the value of the Reading record component
    • Spoken

      @NotNull public @NotNull LanguageSkill.Spoken Spoken()
      Returns the value of the Spoken record component.
      Returns:
      the value of the Spoken record component
    • Written

      @NotNull public @NotNull LanguageSkill.Written Written()
      Returns the value of the Written record component.
      Returns:
      the value of the Written record component