Class InboxPredicates
java.lang.Object
org.openhab.core.config.discovery.inbox.InboxPredicates
Implements static factory methods for
Predicate
s to filter in streams of DiscoveryResult
s.- Author:
- Andre Fuechsel - Initial contribution
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Predicate
<DiscoveryResult> forBinding
(@Nullable String bindingId) static Predicate
<DiscoveryResult> forThingTypeUID
(@Nullable ThingTypeUID uid) static Predicate
<DiscoveryResult> forThingUID
(@Nullable ThingUID thingUID) static Predicate
<DiscoveryResult> withFlag
(DiscoveryResultFlag flag) static Predicate
<DiscoveryResult> withProperty
(@Nullable String propertyName, String propertyValue) static Predicate
<DiscoveryResult> withRepresentationProperty
(@Nullable String propertyName) static Predicate
<DiscoveryResult> withRepresentationPropertyValue
(@Nullable String propertyValue)
-
Constructor Details
-
InboxPredicates
public InboxPredicates()
-
-
Method Details
-
forBinding
-
forThingTypeUID
-
forThingUID
-
withFlag
-
withProperty
public static Predicate<DiscoveryResult> withProperty(@Nullable String propertyName, String propertyValue) -
withRepresentationProperty
-
withRepresentationPropertyValue
public static Predicate<DiscoveryResult> withRepresentationPropertyValue(@Nullable String propertyValue)
-