Searched refs:itemMatcher (Results 1 - 9 of 9) sorted by relevance

/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/internal/
H A DNullSafety.java13 for (final Matcher<? super E> itemMatcher : itemMatchers) {
14 matchers.add((Matcher<? super E>) (itemMatcher == null ? IsNull.nullValue() : itemMatcher));
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
H A DEvery.java34 * <code>itemMatcher</code>.
38 * @param itemMatcher
41 public static <U> Matcher<Iterable<? extends U>> everyItem(final Matcher<U> itemMatcher) { argument
42 return new Every<U>(itemMatcher);
H A DIsCollectionContaining.java61 * <code>itemMatcher</code>. Whilst matching, the traversal of the examined {@link Iterable}
66 * @param itemMatcher
69 public static <T> Matcher<Iterable<? super T>> hasItem(Matcher<? super T> itemMatcher) { argument
70 return new IsCollectionContaining<>(itemMatcher);
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
H A DIsCollectionContainingTest.java30 final Matcher<Iterable<? super String>> itemMatcher = hasItem(equalTo("a"));
32 assertMatches("list containing 'a'", itemMatcher, asList("a", "b", "c"));
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
H A DIsIterableContainingInOrder.java111 * @param itemMatcher
116 public static <E> Matcher<Iterable<? extends E>> contains(final Matcher<? super E> itemMatcher) { argument
117 return contains(new ArrayList<Matcher<? super E>>(asList(itemMatcher)));
/external/icu/android_icu4j/src/main/java/android/icu/util/
H A DLocalePriorityList.java319 final Matcher itemMatcher = weightSplitter.matcher("");
321 if (itemMatcher.reset(item).matches()) {
322 final ULocale language = new ULocale(itemMatcher.group(1));
323 final double weight = Double.parseDouble(itemMatcher.group(2));
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DLocalePriorityList.java335 final Matcher itemMatcher = weightSplitter.matcher("");
337 if (itemMatcher.reset(item).matches()) {
338 final ULocale language = new ULocale(itemMatcher.group(1));
339 final double weight = Double.parseDouble(itemMatcher.group(2));
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/
H A DCoreMatchers.java83 * <code>itemMatcher</code>.
87 * @param itemMatcher
90 public static <U> org.hamcrest.Matcher<java.lang.Iterable<? extends U>> everyItem(org.hamcrest.Matcher<U> itemMatcher) { argument
91 return org.hamcrest.core.Every.everyItem(itemMatcher);
165 * <code>itemMatcher</code>. Whilst matching, the traversal of the examined {@link Iterable}
170 * @param itemMatcher
173 public static <T> org.hamcrest.Matcher<java.lang.Iterable<? super T>> hasItem(org.hamcrest.Matcher<? super T> itemMatcher) { argument
174 return org.hamcrest.core.IsCollectionContaining.<T>hasItem(itemMatcher);
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/
H A DMatchers.java169 * <code>itemMatcher</code>.
173 * @param itemMatcher
176 public static <U> org.hamcrest.Matcher<java.lang.Iterable<? extends U>> everyItem(org.hamcrest.Matcher<U> itemMatcher) { argument
177 return org.hamcrest.core.Every.<U>everyItem(itemMatcher);
251 * <code>itemMatcher</code>. Whilst matching, the traversal of the examined {@link Iterable}
256 * @param itemMatcher
259 public static <T> org.hamcrest.Matcher<java.lang.Iterable<? super T>> hasItem(org.hamcrest.Matcher<? super T> itemMatcher) { argument
260 return org.hamcrest.core.IsCollectionContaining.<T>hasItem(itemMatcher);
866 * @param itemMatcher
870 public static <E> org.hamcrest.Matcher<java.lang.Iterable<? extends E>> contains(org.hamcrest.Matcher<? super E> itemMatcher) { argument
[all...]

Completed in 367 milliseconds