Package io.prestosql.util
Class MoreLists
- java.lang.Object
-
- io.prestosql.util.MoreLists
-
public final class MoreLists extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> List<T>
filteredCopy(Iterable<T> elements, Predicate<T> predicate)
static <T> List<List<T>>
listOfListsCopy(List<List<T>> lists)
static <T,R>
List<R>mappedCopy(Iterable<T> elements, Function<T,R> mapper)
static <T> List<T>
nElements(int n, IntFunction<T> function)
-
-
-
Method Detail
-
nElements
public static <T> List<T> nElements(int n, IntFunction<T> function)
-
-