Modifier and Type | Field and Description |
---|---|
static int |
MAX_ARRAY_SIZE
A safe maximum size for arrays in the JVM.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isNullOrEmpty(Collection<?> collection) |
static boolean |
isNullOrEmpty(Map<?,?> map) |
static <T,R> java.util.stream.Stream<R> |
mapWithIndex(Collection<T> input,
java.util.function.BiFunction<T,Integer,R> mapper) |
static <T> Collection<List<T>> |
partition(Collection<T> elements,
int numBuckets)
Partition a collection into approximately n buckets.
|
static <I,O> Collection<O> |
project(Collection<I> collection,
java.util.function.Function<I,O> projector) |
public static final int MAX_ARRAY_SIZE
public static boolean isNullOrEmpty(Collection<?> collection)
public static boolean isNullOrEmpty(Map<?,?> map)
public static <T,R> java.util.stream.Stream<R> mapWithIndex(Collection<T> input, java.util.function.BiFunction<T,Integer,R> mapper)
public static <T> Collection<List<T>> partition(Collection<T> elements, int numBuckets)
public static <I,O> Collection<O> project(Collection<I> collection, java.util.function.Function<I,O> projector)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.