spring-framework / org.springframework.util / CollectionUtils / contains

contains

open static fun contains(@Nullable iterator: MutableIterator<*>, element: Any): Boolean

Check whether the given Iterator contains the given element.

Parameters

iterator - the Iterator to check

element - the element to look for

Return
true if found, false else

open static fun contains(@Nullable enumeration: Enumeration<*>, element: Any): Boolean

Check whether the given Enumeration contains the given element.

Parameters

enumeration - the Enumeration to check

element - the element to look for

Return
true if found, false else