Example usage for Java org.springframework.util CollectionUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
List | arrayToList(@Nullable Object source) Convert the supplied array into a List. |
boolean | contains(@Nullable Iterator> iterator, Object element) Check whether the given Iterator contains the given element. |
boolean | contains(@Nullable Enumeration> enumeration, Object element) Check whether the given Enumeration contains the given element. |
boolean | containsAny(Collection> source, Collection> candidates) Return true if any element in ' candidates ' is contained in ' source '; otherwise returns false . |
boolean | containsInstance(@Nullable Collection> collection, Object element) Check whether the given Collection contains the given element instance. |
Class> | findCommonElementType(Collection> collection) Find the common element type of the given Collection, if any. |
E | findFirstMatch(Collection> source, Collection Return the first element in ' candidates ' that is contained in ' source '. |
T | findValueOfType(Collection> collection, @Nullable Class Find a single value of the given type in the given Collection. |
Object | findValueOfType(Collection> collection, Class>[] types) Find a single value of one of the given types in the given Collection: searching the Collection for a value of the first type, then searching for a value of the second type, etc. |
boolean | isEmpty(@Nullable Collection> collection) Return true if the supplied Collection is null or empty. |
boolean | isEmpty(@Nullable Map, ?> map) Return true if the supplied Map is null or empty. |
void | mergeArrayIntoCollection(@Nullable Object array, Collection Merge the given array into the given Collection. |
void | mergePropertiesIntoMap(@Nullable Properties props, Map Merge the given Properties instance into the given Map, copying all properties (key-value pairs) over. |
Iterator | toIterator(@Nullable Enumeration Adapt an Enumeration to an Iterator . |
MultiValueMap | toMultiValueMap(Map Adapt a Map |
MultiValueMap | unmodifiableMultiValueMap( MultiValueMap extends K, ? extends V> map) Return an unmodifiable view of the specified multi-value map. |