public class CollectionUtils extends Object
| 构造器和说明 |
|---|
CollectionUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T[] |
addAll(T[]... arrays) |
static <T> Map<String,T> |
getPairMap(List<Map<String,T>> list,
String keyName,
String valName) |
static boolean |
isEmpty(Collection<?> coll) |
static boolean |
isNotEmpty(Collection<?> coll) |
static <T> T[] |
newArray(Class<?> componentType,
int newSize) |
static <E> List<E> |
ofImmutableList(E... es) |
static <E> Set<E> |
ofImmutableSet(E... es) |
static void |
reverseArray(Object[] array) |
static int |
size(Object object) |
static <K,V extends Comparable<? super V>> |
sortByValue(Map<K,V> map) |
static <S,D> List |
transform(Collection<S> srcList,
com.google.common.base.Function<S,D> fun) |
public static boolean isNotEmpty(Collection<?> coll)
public static boolean isEmpty(Collection<?> coll)
public static int size(Object object)
public static void reverseArray(Object[] array)
@SafeVarargs public static <E> Set<E> ofImmutableSet(E... es)
@SafeVarargs public static <E> List<E> ofImmutableList(E... es)
public static <S,D> List transform(Collection<S> srcList, com.google.common.base.Function<S,D> fun)
public static <K,V extends Comparable<? super V>> Map<K,V> sortByValue(Map<K,V> map)
public static <T> T[] addAll(T[]... arrays)
public static <T> T[] newArray(Class<?> componentType, int newSize)
Copyright © 2023 wuyushuo. All rights reserved.