public final class CollectionUtils extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
CollectionUtils.SizeGetter<T> |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> int |
fuzzyTotalSize(Collection<T> items,
CollectionUtils.SizeGetter<T> sizeGetter) |
static <E> E |
getRandom(List<E> e)
Gets random.
|
static <K,V> Map<K,V> |
toSingletonMap(Map<K,V> m) |
public static <E> E getRandom(List<E> e)
E - the type parametere - the epublic static <T> int fuzzyTotalSize(Collection<T> items, CollectionUtils.SizeGetter<T> sizeGetter)
Copyright © 2023 The Ant Financial. All rights reserved.