public class Util
extends java.lang.Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static <E> @NonNull java.util.Collection<E> |
asCollection(org.osgi.service.event.Event event,
java.lang.String propertyName)
Extract a collection from an event property
|
static @NonNull java.lang.String |
toCSSId(@NonNull java.lang.String id)
Create a CSS-ID from an id making sure it is a valid CSS ID
|
public static <E> @NonNull java.util.Collection<E> asCollection(org.osgi.service.event.Event event, java.lang.String propertyName)
event
- the eventpropertyName
- the propertypublic static @NonNull java.lang.String toCSSId(@NonNull java.lang.String id)
id
- the id