public class EnsureCollection extends Object
CXF for example cannot distinguish from nulls. This helper allows you write:
for(String bla : EnsureCollection.list(somecode())) {....}
| Constructor and Description |
|---|
EnsureCollection() |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
list(List<T> aList)
returns the argument or a new list if the argument is null.
|
static <T> List<T> |
notNullList(List<T> aList)
Alias for static imports.
|
Copyright © 2018. All rights reserved.