public class CollectionUtils extends Object
| Constructor and Description |
|---|
CollectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
randomElementOf(List<T> list)
Get a random element from the list.
|
public static <T> T randomElementOf(List<T> list)
T - the type of elements in the listlist - the input listCopyright © 2016. All Rights Reserved.