Package asteroid.utils
Class InternalUtils
- java.lang.Object
-
- asteroid.utils.InternalUtils
-
public final class InternalUtils extends Object
Internal utils to deal with Java code- Since:
- 0.4.3
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> List<T>collect(Object iterable, Closure<T> process)Deals with deprecation of some form of collect, and possible NPEstatic <T> List<T>collect(Collection<T> iterable)Deals with deprecation of some form of collect, and possible NPE
-
-
-
Method Detail
-
collect
public static <T> List<T> collect(Object iterable, Closure<T> process)
Deals with deprecation of some form of collect, and possible NPE
-
collect
public static <T> List<T> collect(Collection<T> iterable)
Deals with deprecation of some form of collect, and possible NPE- Parameters:
iterable- the object we'd like to iterate over- Returns:
- an instance of type
List - Since:
- 0.4.3
-
-