| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.util.CollectionUtil |
Convenience methods for Java Collection collections, in particular, List lists.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CollectionUtil() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static <T> T |
get(List<T> list, int index, T safeValue)
Get the value of a list, safely returning a providing default value if the list s null or the
index out-of-range.
| ||||||||||
| static <T> T |
get(List<T> list, int index)
Get the value of a list, safely returning null if the list s null or the index out-of-range.
| ||||||||||
| static <T> T | getFirst(List<T> list) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Get the value of a list, safely returning a providing default value if the list s null or the index out-of-range.
Get the value of a list, safely returning null if the list s null or the index out-of-range.