public class Lists extends Object
| Constructor and Description |
|---|
Lists() |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
mutableList(List<T> optionalList)
Creates a mutable list from a potentially null or immutable list
|
static <T> List<T> |
newArrayList(T... items)
Creates an array list of elements
|
static <T> List<T> |
notNullList(List<T> list)
Returns an empty list if the given list is null
|
public static <T> List<T> mutableList(List<T> optionalList)
public static <T> List<T> notNullList(List<T> list)
public static <T> List<T> newArrayList(T... items)
Copyright © 2011–2014 Red Hat. All rights reserved.