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

containsAny

open static fun containsAny(source: MutableCollection<*>, candidates: MutableCollection<*>): Boolean

Return true if any element in 'candidates' is contained in 'source'; otherwise returns false.

Parameters

source - the source Collection

candidates - the candidates to search for

Return
whether any of the candidates has been found