Package org.codehaus.plexus.component
Class CastUtils
- java.lang.Object
-
- org.codehaus.plexus.component.CastUtils
-
public final class CastUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Collection<T>
cast(Collection<?> p)
static <T> Collection<T>
cast(Collection<?> p, Class<T> cls)
static <T> Iterator<T>
cast(Iterator<?> p)
static <T> Iterator<T>
cast(Iterator<?> p, Class<T> cls)
static <T> List<T>
cast(List<?> p)
static <T> List<T>
cast(List<?> p, Class<T> cls)
static <T,U>
Map.Entry<T,U>cast(Map.Entry<?,?> p)
static <T,U>
Map.Entry<T,U>cast(Map.Entry<?,?> p, Class<T> pc, Class<U> uc)
static <T,U>
Map<T,U>cast(Map<?,?> p)
static <T,U>
Map<T,U>cast(Map<?,?> p, Class<T> t, Class<U> u)
static <T> Set<T>
cast(Set<?> p)
static <T> Set<T>
cast(Set<?> p, Class<T> cls)
static boolean
isAssignableFrom(Class<?> expected, Class<?> actual)
-
-
-
Method Detail
-
cast
public static <T> Collection<T> cast(Collection<?> p)
-
cast
public static <T> Collection<T> cast(Collection<?> p, Class<T> cls)
-
-