@Component public class HerdCollectionHelper extends Object
| Constructor and Description |
|---|
HerdCollectionHelper() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
safeGet(List<T> list,
int index)
Null-safe and index-safe list get.
|
public <T> T safeGet(List<T> list, int index)
T - the type of list elementlist - List of Tindex - index of elementCopyright © 2019. All rights reserved.