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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionLanguageSkill(@Pattern(regexp="[a-z]{2}") @NotNull String Language, @NotNull LanguageSkill.Listening Listening, @NotNull LanguageSkill.Reading Reading, @NotNull LanguageSkill.Spoken Spoken, @NotNull LanguageSkill.Written Written) Creates an instance of aLanguageSkillrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Pattern(regexp="[a-z]{2}") @NotNull StringLanguage()Returns the value of theLanguagerecord component.@NotNull LanguageSkill.ListeningReturns the value of theListeningrecord component.@NotNull LanguageSkill.ReadingReading()Returns the value of theReadingrecord component.@NotNull LanguageSkill.SpokenSpoken()Returns the value of theSpokenrecord component.final StringtoString()Returns a string representation of this record class.@NotNull LanguageSkill.WrittenWritten()Returns the value of theWrittenrecord component.
-
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 aLanguageSkillrecord class.- Parameters:
Language- the value for theLanguagerecord componentListening- the value for theListeningrecord componentReading- the value for theReadingrecord componentSpoken- the value for theSpokenrecord componentWritten- the value for theWrittenrecord 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). -
Language
Returns the value of theLanguagerecord component.- Returns:
- the value of the
Languagerecord component
-
Listening
Returns the value of theListeningrecord component.- Returns:
- the value of the
Listeningrecord component
-
Reading
Returns the value of theReadingrecord component.- Returns:
- the value of the
Readingrecord component
-
Spoken
Returns the value of theSpokenrecord component.- Returns:
- the value of the
Spokenrecord component
-
Written
Returns the value of theWrittenrecord component.- Returns:
- the value of the
Writtenrecord component
-