Unlike the basic values, getting values from lists is slightly more involved, as multiple values are involved.
The main getters for lists are getList(Function<Object, T>):List<T>
, getList(Function<Object, T>, List<T>):List<T>
,
getList(TypeToken<T>):List<T>
, getList(TypeToken<T>, List<T>):List<T>
.
For the purpose of teaching the following sample will be used be used: