Package org.openhab.core.voice.text
Record Class AbstractRuleBasedInterpreter.ItemFilter
java.lang.Object
java.lang.Record
org.openhab.core.voice.text.AbstractRuleBasedInterpreter.ItemFilter
- Enclosing class:
AbstractRuleBasedInterpreter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexcludedItemNamesrecord component.booleanfilterItem(Item item, MetadataRegistry metadataRegistry) forSimilarItem(Item item, @Nullable Metadata semantic) final inthashCode()Returns a hash code value for this object.Returns the value of theitemNamesrecord component.Returns the value of theitemSemanticsrecord component.itemTags()Returns the value of theitemTagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ItemFilter
public ItemFilter(Set<String> itemNames, Set<String> excludedItemNames, Set<String> itemTags, Set<String> itemSemantics) Creates an instance of aItemFilterrecord class.- Parameters:
itemNames- the value for theitemNamesrecord componentexcludedItemNames- the value for theexcludedItemNamesrecord componentitemTags- the value for theitemTagsrecord componentitemSemantics- the value for theitemSemanticsrecord component
-
-
Method Details
-
filterItem
-
all
-
forItem
-
forItems
-
forSimilarItem
public static AbstractRuleBasedInterpreter.ItemFilter forSimilarItem(Item item, @Nullable Metadata semantic) -
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). -
itemNames
Returns the value of theitemNamesrecord component.- Returns:
- the value of the
itemNamesrecord component
-
excludedItemNames
Returns the value of theexcludedItemNamesrecord component.- Returns:
- the value of the
excludedItemNamesrecord component
-
itemTags
Returns the value of theitemTagsrecord component.- Returns:
- the value of the
itemTagsrecord component
-
itemSemantics
Returns the value of theitemSemanticsrecord component.- Returns:
- the value of the
itemSemanticsrecord component
-