public static boolean containsElement ( @ Nullable final Object [ ] array , final Object element ) { if ( array == null ) { return false ; } for ( final Object arrayEle : array ) { if ( ObjectUtils . nullSafeEquals ( arrayEle , element ) ) { return true ; } } return false ; }
Check whether the given array contains the given element .