public static < K > boolean containsAny ( Set < K > aSet , K [ ] arr ) { for ( K obj : arr ) { if ( aSet . contains ( obj ) ) { return true ; } } return false ; }
Checks whether any of an array s elements are also in the provided set .