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