IterUtil
Source
The methods in this utility class were originally in CollUtil, but they were extracted and abstracted to adapt to a wider range of scenarios.
Method Introduction
isEmptyWhether it is null or emptyisNotEmptyWhether it is non-null and contains at least one elementhasNullWhether there are null elementsisAllNullWhether all elements are nullcountMapReturns a Map of element counts based on a collection. Element counts refer to the number of times an element appears in the collection, where the element is used as the key and the count is used as the value.joinConverts a collection to a string using a separatortoMapConverts a list of entries or separate lists of keys and values to a MapasIteratorConverts an enumeration to an iteratorasIterableConverts an iterator to an iterablegetFirstGets the first element from a listgetElementTypeGets the element type