public class UIUtil
extends java.lang.Object
| Constructor and Description |
|---|
UIUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
unwrap(java.lang.Object object,
java.lang.Class<T> type)
Unwraps given
object and extracts an object with given type from it. |
static <T> java.util.List<T> |
unwrapAll(java.lang.Object object,
java.lang.Class<T> clazz)
Unwraps given
object and extracts a list of objects with given type from it. |
public static <T> T unwrap(java.lang.Object object,
java.lang.Class<T> type)
object and extracts an object with given type from it.object - The object to be unwrapped.type - The type of the object to be extracted.type that is wrapped by given object, or
null if given object does not wrap an object with given type or no object at
all.public static <T> java.util.List<T> unwrapAll(java.lang.Object object,
java.lang.Class<T> clazz)
object and extracts a list of objects with given type from it.object - The object to be unwrapped.type - The type of the objects to be extracted.type that is wrapped by given object, or
null if given object does not wrap any objects with given type or no objects at
all.