public class CollectionKit
extends org.apache.commons.collections.CollectionUtils
| 构造器和说明 |
|---|
CollectionKit() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> List<T> |
getFieldValueList(Collection<? extends Model<?>> collection,
String key,
Class<T> c)
根据key截取集合指定值
|
static <T> boolean |
isBlank(Collection<T> collection) |
static <T> boolean |
isNotBlank(Collection<T> collection) |
static <T> boolean |
isNull(Collection<T> collection) |
static <T> List<T> |
toList(T... params)
将参数转成list形式
|
addAll, addAll, addAll, addIgnoreNull, cardinality, collect, collect, collect, collect, containsAny, countMatches, disjunction, exists, filter, find, forAllDo, get, getCardinalityMap, index, index, intersection, isEmpty, isEqualCollection, isFull, isNotEmpty, isProperSubCollection, isSubCollection, maxSize, predicatedCollection, removeAll, retainAll, reverseArray, select, select, selectRejected, selectRejected, size, sizeIsEmpty, subtract, synchronizedCollection, transform, transformedCollection, typedCollection, union, unmodifiableCollectionpublic static <T> boolean isBlank(Collection<T> collection)
public static <T> boolean isNotBlank(Collection<T> collection)
public static <T> boolean isNull(Collection<T> collection)
public static <T> List<T> getFieldValueList(Collection<? extends Model<?>> collection, String key, Class<T> c)
T - E - collection - key - c - public static <T> List<T> toList(T... params)
params - Copyright © 2015. All rights reserved.