@Internal public final class CollectionUtil extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static int | MAX_ARRAY_SIZEA 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. | 
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)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.