001// Generated source.002package org.hamcrest;003004public class CoreMatchers {005006 /**007 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.008 * <p/>009 * For example:010 * <pre>assertThat("myValue", allOf(startsWith("my"), containsString("Val")))</pre>011 */012 public static <T> org.hamcrest.Matcher<T> allOf(java.lang.Iterable<org.hamcrest.Matcher<? super T>> matchers) {013 return org.hamcrest.core.AllOf.<T>allOf(matchers);014 }015016 /**017 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.018 * <p/>019 * For example:020 * <pre>assertThat("myValue", allOf(startsWith("my"), containsString("Val")))</pre>021 */022 public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T>... matchers) {023 return org.hamcrest.core.AllOf.<T>allOf(matchers);024 }025026 /**027 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.028 * <p/>029 * For example:030 * <pre>assertThat("myValue", allOf(startsWith("my"), containsString("Val")))</pre>031 */032 public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T> first, org.hamcrest.Matcher<? super T> second) {033 return org.hamcrest.core.AllOf.<T>allOf(first, second);034 }035036 /**037 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.038 * <p/>039 * For example:040 * <pre>assertThat("myValue", allOf(startsWith("my"), containsString("Val")))</pre>041 */042 public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T> first, org.hamcrest.Matcher<? super T> second, org.hamcrest.Matcher<? super T> third) {043 return org.hamcrest.core.AllOf.<T>allOf(first, second, third);044 }045046 /**047 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.048 * <p/>049 * For example:050 * <pre>assertThat("myValue", allOf(startsWith("my"), containsString("Val")))</pre>051 */052 public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T> first, org.hamcrest.Matcher<? super T> second, org.hamcrest.Matcher<? super T> third, org.hamcrest.Matcher<? super T> fourth) {053 return org.hamcrest.core.AllOf.<T>allOf(first, second, third, fourth);054 }055056 /**057 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.058 * <p/>059 * For example:060 * <pre>assertThat("myValue", allOf(startsWith("my"), containsString("Val")))</pre>061 */062 public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T> first, org.hamcrest.Matcher<? super T> second, org.hamcrest.Matcher<? super T> third, org.hamcrest.Matcher<? super T> fourth, org.hamcrest.Matcher<? super T> fifth) {063 return org.hamcrest.core.AllOf.<T>allOf(first, second, third, fourth, fifth);064 }065066 /**067 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.068