Home
last modified time | relevance | path

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

/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/internal/
DNullSafety.java13 for (final Matcher<? super E> itemMatcher : itemMatchers) { in nullSafe()
14 … matchers.add((Matcher<? super E>) (itemMatcher == null ? IsNull.nullValue() : itemMatcher)); in nullSafe()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DLocalePriorityList.java335 final Matcher itemMatcher = weightSplitter.matcher(""); in add() local
337 if (itemMatcher.reset(item).matches()) { in add()
338 final ULocale language = new ULocale(itemMatcher.group(1)); in add()
339 final double weight = Double.parseDouble(itemMatcher.group(2)); in add()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DLocalePriorityList.java320 final Matcher itemMatcher = weightSplitter.matcher(""); in add() local
322 if (itemMatcher.reset(item).matches()) { in add()
323 final ULocale language = new ULocale(itemMatcher.group(1)); in add()
324 final double weight = Double.parseDouble(itemMatcher.group(2)); in add()
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
DEvery.java41 public static <U> Matcher<Iterable<? extends U>> everyItem(final Matcher<U> itemMatcher) { in everyItem() argument
42 return new Every<U>(itemMatcher); in everyItem()
DIsCollectionContaining.java69 public static <T> Matcher<Iterable<? super T>> hasItem(Matcher<? super T> itemMatcher) { in hasItem() argument
70 return new IsCollectionContaining<>(itemMatcher); in hasItem()
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/
DCoreMatchers.java90 ….hamcrest.Matcher<java.lang.Iterable<? extends U>> everyItem(org.hamcrest.Matcher<U> itemMatcher) { in everyItem() argument
91 return org.hamcrest.core.Every.everyItem(itemMatcher); in everyItem()
173 …crest.Matcher<java.lang.Iterable<? super T>> hasItem(org.hamcrest.Matcher<? super T> itemMatcher) { in hasItem() argument
174 return org.hamcrest.core.IsCollectionContaining.<T>hasItem(itemMatcher); in hasItem()
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
DIsCollectionContainingTest.java30 final Matcher<Iterable<? super String>> itemMatcher = hasItem(equalTo("a")); in matchesACollectionThatContainsAnElementForTheGivenMatcher() local
32 assertMatches("list containing 'a'", itemMatcher, asList("a", "b", "c")); in matchesACollectionThatContainsAnElementForTheGivenMatcher()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
DIsIterableContainingInOrder.java116 … public static <E> Matcher<Iterable<? extends E>> contains(final Matcher<? super E> itemMatcher) { in contains() argument
117 return contains(new ArrayList<Matcher<? super E>>(asList(itemMatcher))); in contains()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/
DMatchers.java176 ….hamcrest.Matcher<java.lang.Iterable<? extends U>> everyItem(org.hamcrest.Matcher<U> itemMatcher) { in everyItem() argument
177 return org.hamcrest.core.Every.<U>everyItem(itemMatcher); in everyItem()
259 …crest.Matcher<java.lang.Iterable<? super T>> hasItem(org.hamcrest.Matcher<? super T> itemMatcher) { in hasItem() argument
260 return org.hamcrest.core.IsCollectionContaining.<T>hasItem(itemMatcher); in hasItem()
870 …st.Matcher<java.lang.Iterable<? extends E>> contains(org.hamcrest.Matcher<? super E> itemMatcher) { in contains() argument
871 return org.hamcrest.collection.IsIterableContainingInOrder.<E>contains(itemMatcher); in contains()