File tree Expand file tree Collapse file tree
hamcrest-core/src/main/java/org/hamcrest/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 * matcher returns <code>false</code>.
1414 */
1515public class AllOf <T > extends BaseMatcher <T > {
16- private final Iterable <Matcher <? extends T >> matchers ;
16+ private final Iterable <? extends Matcher <? extends T >> matchers ;
1717
18- public AllOf (Iterable <Matcher <? extends T >> matchers ) {
18+ public AllOf (Iterable <? extends Matcher <? extends T >> matchers ) {
1919 this .matchers = matchers ;
2020 }
2121
@@ -44,8 +44,7 @@ public static <T> Matcher<T> allOf(Matcher<? extends T>... matchers) {
4444 * Evaluates to true only if ALL of the passed in matchers evaluate to true.
4545 */
4646 @ Factory
47- public static <T > Matcher <T > allOf (Iterable <Matcher <? extends T >> matchers ) {
47+ public static <T > Matcher <T > allOf (Iterable <? extends Matcher <? extends T >> matchers ) {
4848 return new AllOf <T >(matchers );
4949 }
50-
5150}
Original file line number Diff line number Diff line change 1414 */
1515public class AnyOf <T > extends BaseMatcher <T > {
1616
17- private final Iterable <Matcher <? extends T >> matchers ;
17+ private final Iterable <? extends Matcher <? extends T >> matchers ;
1818
19- public AnyOf (Iterable <Matcher <? extends T >> matchers ) {
19+ public AnyOf (Iterable <? extends Matcher <? extends T >> matchers ) {
2020 this .matchers = matchers ;
2121 }
2222
@@ -45,7 +45,7 @@ public static <T> Matcher<T> anyOf(Matcher<? extends T>... matchers) {
4545 * Evaluates to true if ANY of the passed in matchers evaluate to true.
4646 */
4747 @ Factory
48- public static <T > Matcher <T > anyOf (Iterable <Matcher <? extends T >> matchers ) {
48+ public static <T > Matcher <T > anyOf (Iterable <? extends Matcher <? extends T >> matchers ) {
4949 return new AnyOf <T >(matchers );
5050 }
5151}
You can’t perform that action at this time.
0 commit comments