@@ -29,23 +29,32 @@ public void describeTo(Description description) {
2929 }
3030
3131 /**
32- * Evaluates to true if ANY of the passed in matchers evaluate to true.
32+ * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
33+ * <p/>
34+ * For example:
35+ * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre>
3336 */
3437 @ Factory
3538 public static <T > AnyOf <T > anyOf (Iterable <Matcher <? super T >> matchers ) {
3639 return new AnyOf <T >(matchers );
3740 }
3841
3942 /**
40- * Evaluates to true if ANY of the passed in matchers evaluate to true.
43+ * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
44+ * <p/>
45+ * For example:
46+ * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre>
4147 */
4248 @ Factory
4349 public static <T > AnyOf <T > anyOf (Matcher <? super T >... matchers ) {
4450 return anyOf (Arrays .asList (matchers ));
4551 }
4652
4753 /**
48- * Evaluates to true if ANY of the passed in matchers evaluate to true.
54+ * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
55+ * <p/>
56+ * For example:
57+ * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre>
4958 */
5059 @ Factory
5160 public static <T > AnyOf <T > anyOf (Matcher <T > first , Matcher <? super T > second ) {
@@ -56,7 +65,10 @@ public static <T> AnyOf<T> anyOf(Matcher<T> first, Matcher<? super T> second) {
5665 }
5766
5867 /**
59- * Evaluates to true if ANY of the passed in matchers evaluate to true.
68+ * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
69+ * <p/>
70+ * For example:
71+ * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre>
6072 */
6173 @ Factory
6274 public static <T > AnyOf <T > anyOf (Matcher <T > first , Matcher <? super T > second , Matcher <? super T > third ) {
@@ -68,7 +80,10 @@ public static <T> AnyOf<T> anyOf(Matcher<T> first, Matcher<? super T> second, Ma
6880 }
6981
7082 /**
71- * Evaluates to true if ANY of the passed in matchers evaluate to true.
83+ * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
84+ * <p/>
85+ * For example:
86+ * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre>
7287 */
7388 @ Factory
7489 public static <T > AnyOf <T > anyOf (Matcher <T > first , Matcher <? super T > second , Matcher <? super T > third , Matcher <? super T > fourth ) {
@@ -81,7 +96,10 @@ public static <T> AnyOf<T> anyOf(Matcher<T> first, Matcher<? super T> second, Ma
8196 }
8297
8398 /**
84- * Evaluates to true if ANY of the passed in matchers evaluate to true.
99+ * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
100+ * <p/>
101+ * For example:
102+ * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre>
85103 */
86104 @ Factory
87105 public static <T > AnyOf <T > anyOf (Matcher <T > first , Matcher <? super T > second , Matcher <? super T > third , Matcher <? super T > fourth , Matcher <? super T > fifth ) {
@@ -95,7 +113,10 @@ public static <T> AnyOf<T> anyOf(Matcher<T> first, Matcher<? super T> second, Ma
95113 }
96114
97115 /**
98- * Evaluates to true if ANY of the passed in matchers evaluate to true.
116+ * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
117+ * <p/>
118+ * For example:
119+ * <pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre>
99120 */
100121 @ Factory
101122 public static <T > AnyOf <T > anyOf (Matcher <T > first , Matcher <? super T > second , Matcher <? super T > third , Matcher <? super T > fourth , Matcher <? super T > fifth , Matcher <? super T > sixth ) {
0 commit comments