public static boolean equalsOne ( Object _obj , Object ... _arrObj ) { if ( _obj == null || _arrObj == null ) { return false ; } for ( Object o : _arrObj ) { if ( o != null && _obj . equals ( o ) ) { return true ; } } return false ; }
Returns true if the specified object equals at least one of the specified other objects .