public abstract class CastUtils extends Object
This utility class has methods to cast collections.
| Modifier and Type | Method and Description |
|---|---|
static <T> Collection<T> |
cast(Collection<?> col)
Casts a collection.
|
static <T> Collection<T> |
cast(Collection<?> col,
Class<T> t)
Casts a collection.
|
static <T> Iterator<T> |
cast(Iterator<?> iter)
Casts an iterator.
|
static <T> Iterator<T> |
cast(Iterator<?> iter,
Class<T> t)
Casts an iterator.
|
static <T> List<T> |
cast(List<?> list)
Casts a list.
|
static <T> List<T> |
cast(List<?> list,
Class<T> t)
Casts a list.
|
static <T,U> Map.Entry<T,U> |
cast(Map.Entry<?,?> mapEntry)
Casts a map entry.
|
static <T,U> Map.Entry<T,U> |
cast(Map.Entry<?,?> mapEntry,
Class<T> t,
Class<U> u)
Casts a map entry.
|
static <T,U> Map<T,U> |
cast(Map<?,?> map)
Casts a map.
|
static <T,U> Map<T,U> |
cast(Map<?,?> map,
Class<T> t,
Class<U> u)
Casts a map.
|
static <T> Set<T> |
cast(Set<?> set)
Casts a set.
|
static <T> Set<T> |
cast(Set<?> set,
Class<T> t)
Casts a set.
|
public static <T> Collection<T> cast(Collection<?> col)
public static <T> Collection<T> cast(Collection<?> col, Class<T> t)
Copyright © 2017 bremersee.org. All rights reserved.