|
|
|
@ -30,7 +30,7 @@ public class ListSupport<T> {
|
|
|
|
|
* @param iterable Collection
|
|
|
|
|
* @return List
|
|
|
|
|
*/
|
|
|
|
|
public List<T> asList(Iterable<T> iterable) {
|
|
|
|
|
public static <T> List<T> asList(Iterable<T> iterable) {
|
|
|
|
|
return iterable == null ? Collections.emptyList() :
|
|
|
|
|
iterable instanceof List<T> ?
|
|
|
|
|
(List<T>)iterable :
|
|
|
|
|