ClassUtils¶
-
public final class
ClassUtils
¶ Utility class responsible for casting classes.
Methods¶
filterByClass¶
-
public static <T> List<T>
filterByClass
(Class<T> clazz, Enumeration enumeration)¶ Filters the given
Enumeration
searching for instances of the given class.Parameters: - clazz – the class used for filtering
- enumeration – the filtered elements
- <T> – the class used for filtering and returning properly cast objects
Returns: the list of instances of given class found in the enumeration