Skip to content

CollectionUtils

Mohamed Anees edited this page Nov 13, 2018 · 3 revisions
  • getFirstInList(List)

Returns the first element in the List,if present. Null otherwise. This method is null-safe.

  • castStringCollection(Collection, Class)

Can convert Collection<String> to Collection<Integer/Float/Double> if parseable. Throws exceptions, if any. Null-safe.

Clone this wiki locally