Record Class TextResourceSearchService.Translation
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.aiassistant.impl.textresource.TextResourceSearchService.Translation
- Record Components:
keys- the first keys this translation is used by
- Enclosing class:
TextResourceSearchService
-
Constructor Summary
ConstructorsConstructorDescriptionTranslation(String sourceText, String targetText, List<String> keys) Creates an instance of aTranslationrecord 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.keys()Returns the value of thekeysrecord component.Returns the value of thesourceTextrecord component.Returns the value of thetargetTextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Translation
Creates an instance of aTranslationrecord class.- Parameters:
sourceText- the value for thesourceTextrecord componenttargetText- the value for thetargetTextrecord componentkeys- the value for thekeysrecord 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). -
sourceText
Returns the value of thesourceTextrecord component.- Returns:
- the value of the
sourceTextrecord component
-
targetText
Returns the value of thetargetTextrecord component.- Returns:
- the value of the
targetTextrecord component
-
keys
-