Package org.openhab.core.voice.text
Record Class InterpretationArguments
java.lang.Object
java.lang.Record
org.openhab.core.voice.text.InterpretationArguments
@NonNullByDefault
public record InterpretationArguments(String hliIdList, String conversationId, String toolIdList, @Nullable String locationItem, @Nullable Locale locale)
extends Record
Arguments for
VoiceManager interpretation.- Author:
- Miguel Álvarez Díez - Initial contribution
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconversationIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehliIdListrecord component.@Nullable Localelocale()Returns the value of thelocalerecord component.@Nullable StringReturns the value of thelocationItemrecord component.Returns the value of thetoolIdListrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InterpretationArguments
public InterpretationArguments(String hliIdList, String conversationId, String toolIdList, @Nullable String locationItem, @Nullable Locale locale) Creates an instance of aInterpretationArgumentsrecord class.- Parameters:
hliIdList- the value for thehliIdListrecord componentconversationId- the value for theconversationIdrecord componenttoolIdList- the value for thetoolIdListrecord componentlocationItem- the value for thelocationItemrecord componentlocale- the value for thelocalerecord component
-
-
Method Details
-
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. -
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. -
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). -
hliIdList
Returns the value of thehliIdListrecord component.- Returns:
- the value of the
hliIdListrecord component
-
conversationId
Returns the value of theconversationIdrecord component.- Returns:
- the value of the
conversationIdrecord component
-
toolIdList
Returns the value of thetoolIdListrecord component.- Returns:
- the value of the
toolIdListrecord component
-
locationItem
Returns the value of thelocationItemrecord component.- Returns:
- the value of the
locationItemrecord component
-
locale
Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-