public interface Util
| Modifier and Type | Method and Description |
|---|---|
static <K,V> java.util.LinkedHashMap<K,V> |
asMap(K key1,
V value1)
Convenience method to create a
LinkedHashMap |
static <K,V> java.util.LinkedHashMap<K,V> |
asMap(K key1,
V value1,
K key2,
V value2)
Convenience method to create a
LinkedHashMap |
static <K,V> java.util.LinkedHashMap<K,V> |
asMap(K key1,
V value1,
K key2,
V value2,
K key3,
V value3)
Convenience method to create a
LinkedHashMap |
static <K,V> java.util.LinkedHashMap<K,V> |
asMap(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4)
Convenience method to create a
LinkedHashMap |
static java.lang.String |
bundleName(org.osgi.framework.BundleContext context)
Extract the bundle name and it's ID from the bundle context.
|
static java.lang.String |
createCompleteFilter(java.lang.Class<?> type,
java.lang.String customFilter)
Creates a filter criteria expression which matches the given main type
and the given custom filter.
|
static java.lang.String |
createObjectClassFilter(java.lang.String typeName)
Creates an `OBJECTCLASS` filter for the given class.
|
static de.tototec.utils.functional.Optional<java.lang.String> |
linkFiltersWithAnd(de.tototec.utils.functional.Optional<java.lang.String> filterOne,
de.tototec.utils.functional.Optional<java.lang.String> filterTwo)
Links to filter expressions with a logical AND if both are given,
otherwise returns just one of it.
|
static java.lang.String createCompleteFilter(java.lang.Class<?> type,
java.lang.String customFilter)
tpe - Type informationcustomFilter - A custom filter expressionstatic java.lang.String createObjectClassFilter(java.lang.String typeName)
static de.tototec.utils.functional.Optional<java.lang.String> linkFiltersWithAnd(de.tototec.utils.functional.Optional<java.lang.String> filterOne,
de.tototec.utils.functional.Optional<java.lang.String> filterTwo)
filterOne - First filterfilterTwo - Second filterstatic <K,V> java.util.LinkedHashMap<K,V> asMap(K key1,
V value1)
LinkedHashMapstatic <K,V> java.util.LinkedHashMap<K,V> asMap(K key1,
V value1,
K key2,
V value2)
LinkedHashMapstatic <K,V> java.util.LinkedHashMap<K,V> asMap(K key1,
V value1,
K key2,
V value2,
K key3,
V value3)
LinkedHashMapstatic <K,V> java.util.LinkedHashMap<K,V> asMap(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4)
LinkedHashMapstatic java.lang.String bundleName(org.osgi.framework.BundleContext context)
context - The bundle context.