Home
last modified time | relevance | path

Searched refs:elementMatchers (Results 1 – 4 of 4) sorted by relevance

/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
DIsArray.java14 private final Matcher<? super T>[] elementMatchers; field in IsArray
16 public IsArray(Matcher<? super T>[] elementMatchers) { in IsArray() argument
17 this.elementMatchers = elementMatchers.clone(); in IsArray()
22 if (array.length != elementMatchers.length) return false; in matchesSafely()
25 if (!elementMatchers[i].matches(array[i])) return false; in matchesSafely()
33 if (actual.length != elementMatchers.length) { in describeMismatchSafely()
38 if (!elementMatchers[i].matches(actual[i])) { in describeMismatchSafely()
40 elementMatchers[i].describeMismatch(actual[i], mismatchDescription); in describeMismatchSafely()
50 Arrays.asList(elementMatchers)); in describeTo()
93 public static <T> IsArray<T> array(Matcher<? super T>... elementMatchers) { in array() argument
[all …]
/external/cldr/tools/java/org/unicode/cldr/api/
DPathMatcher.java81 private final ImmutableList<Predicate<CldrPath>> elementMatchers; field in PathMatcher
84 private PathMatcher(PathMatcher parent, List<Predicate<CldrPath>> elementMatchers) { in PathMatcher() argument
86 this.elementMatchers = ImmutableList.copyOf(elementMatchers); in PathMatcher()
88 elementMatchers.size() + (parent != null ? parent.totalElementCount : 0); in PathMatcher()
117 while (path.getLength() > totalElementCount - elementMatchers.size()) { in matches()
151 && matchRegion(path, totalElementCount - elementMatchers.size()); in locallyMatches()
157 checkPositionIndex(offset, path.getLength() - elementMatchers.size()); in matchRegion()
159 int matchPathLength = offset + elementMatchers.size(); in matchRegion()
163 return matchForward(path, elementMatchers.size() - 1); in matchRegion()
171 && elementMatchers.get(matcherIndex).test(path); in matchForward()
/external/junit/src/main/java/org/junit/matchers/
DJUnitMatchers.java50 public static <T> Matcher<Iterable<T>> hasItems(Matcher<? super T>... elementMatchers) { in hasItems() argument
51 return CoreMatchers.<T>hasItems(elementMatchers); in hasItems()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/
DMatchers.java558 … <T> org.hamcrest.collection.IsArray<T> array(org.hamcrest.Matcher<? super T>... elementMatchers) { in array() argument
559 return org.hamcrest.collection.IsArray.<T>array(elementMatchers); in array()