Fixes #14153.
This fixes the Hue Emulation tests (and in consequence the full addons build) after core change https://github.com/openhab/openhab-core/pull/3298.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.eclipse.jdt.annotation.NonNullByDefault;
return false;
}
+ @Override
+ public Collection<String> getAllNamespaces(String itemname) {
+ return stream().map(Metadata::getUID).filter(key -> key.getItemName().equals(itemname))
+ .map(MetadataKey::getNamespace).collect(Collectors.toSet());
+ }
+
@Override
public void removeItemMetadata(String name) {
}