Class PersistenceEqualsFilter
java.lang.Object
org.openhab.core.persistence.filter.PersistenceFilter
org.openhab.core.persistence.filter.PersistenceEqualsFilter
The
PersistenceEqualsFilter is a filter that allows only specific values to pass
The filter returns false if the string representation of the item's state is not in the given list- Author:
- Jan N. Klug - Initial contribution
-
Constructor Summary
ConstructorsConstructorDescriptionPersistenceEqualsFilter(String name, Collection<String> values, @Nullable Boolean inverted) -
Method Summary
Modifier and TypeMethodDescriptionbooleanApply this filter to an itembooleanvoidNotify filter that item was persistedtoString()Methods inherited from class org.openhab.core.persistence.filter.PersistenceFilter
equals, getName, hashCode
-
Constructor Details
-
PersistenceEqualsFilter
-
-
Method Details
-
getValues
-
getInverted
public boolean getInverted() -
apply
Description copied from class:PersistenceFilterApply this filter to an item- Specified by:
applyin classPersistenceFilter- Parameters:
item- the item to check- Returns:
- true if the filter allows persisting this value
-
persisted
Description copied from class:PersistenceFilterNotify filter that item was persisted- Specified by:
persistedin classPersistenceFilter- Parameters:
item- the persisted item
-
toString
- Overrides:
toStringin classPersistenceFilter
-