public static void contains ( Collection < ? > argument , Object value , String name ) { isNotNull ( argument , name ) ; if ( ! argument . contains ( value ) ) { throw new IllegalArgumentException ( CommonI18n . argumentDidNotContainObject . text ( name , getObjectName ( value ) ) ) ; } }
Check that the collection contains the value