Record Class TextResourceSearchService.TermTranslations
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.aiassistant.impl.textresource.TextResourceSearchService.TermTranslations
- Enclosing class:
TextResourceSearchService
public static record TextResourceSearchService.TermTranslations(String term, List<TextResourceSearchService.Translation> translations)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTermTranslations(String term, List<TextResourceSearchService.Translation> translations) Creates an instance of aTermTranslationsrecord 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.term()Returns the value of thetermrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranslationsrecord component.
-
Constructor Details
-
TermTranslations
Creates an instance of aTermTranslationsrecord class.- Parameters:
term- the value for thetermrecord componenttranslations- the value for thetranslationsrecord 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). -
term
Returns the value of thetermrecord component.- Returns:
- the value of the
termrecord component
-
translations
Returns the value of thetranslationsrecord component.- Returns:
- the value of the
translationsrecord component
-