asList -> static

master
mjkhan21 1 year ago
parent a012929bc7
commit 6069927fef

@ -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 :

Loading…
Cancel
Save