@@ -92,56 +92,6 @@ public static <E> Matcher<Iterable<E>> contains(E... items) {
9292 return contains (matchers );
9393 }
9494
95- @ Factory
96- public static <E > Matcher <Iterable <E >> contains (E first , E second ) {
97- List <Matcher <? super E >> matchers = new ArrayList <Matcher <? super E >>();
98- matchers .add (equalTo (first ));
99- matchers .add (equalTo (second ));
100- return contains (matchers );
101- }
102-
103- @ Factory
104- public static <E > Matcher <Iterable <E >> contains (E first , E second , E third ) {
105- List <Matcher <? super E >> matchers = new ArrayList <Matcher <? super E >>();
106- matchers .add (equalTo (first ));
107- matchers .add (equalTo (second ));
108- matchers .add (equalTo (third ));
109- return contains (matchers );
110- }
111-
112- @ Factory
113- public static <E > Matcher <Iterable <E >> contains (E first , E second , E third , E forth ) {
114- List <Matcher <? super E >> matchers = new ArrayList <Matcher <? super E >>();
115- matchers .add (equalTo (first ));
116- matchers .add (equalTo (second ));
117- matchers .add (equalTo (third ));
118- matchers .add (equalTo (forth ));
119- return contains (matchers );
120- }
121-
122- @ Factory
123- public static <E > Matcher <Iterable <E >> contains (E first , E second , E third , E forth , E fifth ) {
124- List <Matcher <? super E >> matchers = new ArrayList <Matcher <? super E >>();
125- matchers .add (equalTo (first ));
126- matchers .add (equalTo (second ));
127- matchers .add (equalTo (third ));
128- matchers .add (equalTo (forth ));
129- matchers .add (equalTo (fifth ));
130- return contains (matchers );
131- }
132-
133- @ Factory
134- public static <E > Matcher <Iterable <E >> contains (E first , E second , E third , E forth , E fifth , E sixth ) {
135- List <Matcher <? super E >> matchers = new ArrayList <Matcher <? super E >>();
136- matchers .add (equalTo (first ));
137- matchers .add (equalTo (second ));
138- matchers .add (equalTo (third ));
139- matchers .add (equalTo (forth ));
140- matchers .add (equalTo (fifth ));
141- matchers .add (equalTo (sixth ));
142- return contains (matchers );
143- }
144-
14595 @ Factory
14696 public static <E > Matcher <Iterable <E >> contains (final Matcher <E > item ) {
14797 return contains (new ArrayList <Matcher <? super E >>() {{ add (item ); }});
@@ -152,56 +102,6 @@ public static <E> Matcher<Iterable<E>> contains(Matcher<? super E>... items) {
152102 return contains (Arrays .asList (items ));
153103 }
154104
155- @ Factory
156- public static <E > Matcher <Iterable <E >> contains (Matcher <E > first , Matcher <? super E > second ) {
157- List <Matcher <? super E >> matchers = new ArrayList <Matcher <? super E >>();
158- matchers .add (first );
159- matchers .add (second );
160- return contains (matchers );
161- }
162-
163- @ Factory
164- public static <E > Matcher <Iterable <E >> contains (Matcher <E > first , Matcher <? super E > second , Matcher <? super E > third ) {
165- List <Matcher <? super E >> matchers = new ArrayList <Matcher <? super E >>();
166- matchers .add (first );
167- matchers .add (second );
168- matchers .add (third );
169- return contains (matchers );
170- }
171-
172- @ Factory
173- public static <E > Matcher <Iterable <E >> contains (Matcher <E > first , Matcher <? super E > second , Matcher <? super E > third , Matcher <? super E > forth ) {
174- List <Matcher <? super E >> matchers = new ArrayList <Matcher <? super E >>();
175- matchers .add (first );
176- matchers .add (second );
177- matchers .add (third );
178- matchers .add (forth );
179- return contains (matchers );
180- }
181-
182- @ Factory
183- public static <E > Matcher <Iterable <E >> contains (Matcher <E > first , Matcher <? super E > second , Matcher <? super E > third , Matcher <? super E > forth , Matcher <? super E > fifth ) {
184- List <Matcher <? super E >> matchers = new ArrayList <Matcher <? super E >>();
185- matchers .add (first );
186- matchers .add (second );
187- matchers .add (third );
188- matchers .add (forth );
189- matchers .add (fifth );
190- return contains (matchers );
191- }
192-
193- @ Factory
194- public static <E > Matcher <Iterable <E >> contains (Matcher <E > first , Matcher <? super E > second , Matcher <? super E > third , Matcher <? super E > forth , Matcher <? super E > fifth , Matcher <? super E > sixth ) {
195- List <Matcher <? super E >> matchers = new ArrayList <Matcher <? super E >>();
196- matchers .add (first );
197- matchers .add (second );
198- matchers .add (third );
199- matchers .add (forth );
200- matchers .add (fifth );
201- matchers .add (sixth );
202- return contains (matchers );
203- }
204-
205105 @ Factory
206106 public static <E > Matcher <Iterable <E >> contains (List <Matcher <? super E >> contents ) {
207107 return new IsIterableContainingInOrder <E >(contents );
0 commit comments