Home
last modified time | relevance | path

Searched refs:hasKey (Results 1 – 10 of 10) sorted by relevance

/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
DIsMapContainingKeyTest.java11 import static org.hamcrest.collection.IsMapContaining.hasKey;
17 return hasKey("foo"); in createMatcher()
24 assertMatches("Matches single key", hasKey("a"), map); in testMatchesSingletonMapContainingKey()
33 assertMatches("Matches a", hasKey("a"), map); in testMatchesMapContainingKey()
34 assertMatches("Matches c", hasKey("c"), map); in testMatchesMapContainingKey()
54 assertThat(map, hasKey(1)); in testMatchesMapContainingKeyWithIntegerKeys()
62 assertThat(map, hasKey((Number)1)); in testMatchesMapContainingKeyWithNumberKeys()
69 assertDescription("map containing [\"a\"->ANYTHING]", hasKey("a")); in testHasReadableDescription()
73 assertMismatchDescription("map was []", hasKey("Foo"), new HashMap<String,Integer>()); in testDoesNotMatchEmptyMap()
82 assertMismatchDescription("map was [<a=1>, <b=2>, <c=3>]", hasKey("d"), map); in testDoesNotMatchMapMissingKey()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
DIsMapContaining.java87 public static <K> Matcher<Map<? extends K, ?>> hasKey(Matcher<? super K> keyMatcher) { in hasKey() method in IsMapContaining
100 public static <K> Matcher<Map<? extends K, ?>> hasKey(K key) { in hasKey() method in IsMapContaining
/external/cldr/tools/java/org/unicode/cldr/icu/
DLDML2ICUBinaryWriter.java284 if (!res.hasKey) { in getSpecialType()
614 if (cur.hasKey && (cur instanceof ICUResourceWriter.ResourceString)) { in addCollation()
845 if (!resTop.isTop && resTop.hasKey) { in buildKeyList()
860 current.hasKey = false; in buildKeyList()
DICUResourceWriter.java114 public boolean hasKey = true; field in ICUResourceWriter.Resource
/external/guava/guava-tests/test/com/google/common/cache/
DLocalLoadingCacheTest.java163 assertThat(map).hasKey(three).withValue(one); in testStatsNoops()
164 assertThat(map).hasKey(one).withValue(two); in testStatsNoops()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/
DMatchers.java1087 …public static <K> org.hamcrest.Matcher<java.util.Map<? extends K,?>> hasKey(org.hamcrest.Matcher<?… in hasKey() method in Matchers
1088 return org.hamcrest.collection.IsMapContaining.<K>hasKey(keyMatcher); in hasKey()
1100 public static <K> org.hamcrest.Matcher<java.util.Map<? extends K,?>> hasKey(K key) { in hasKey() method in Matchers
1101 return org.hamcrest.collection.IsMapContaining.<K>hasKey(key); in hasKey()
/external/hamcrest/
DCHANGES.txt84 generics bug in hasKey and hasValue static factories previously declared
/external/skqp/src/gpu/
DGrResourceCache.cpp430 bool hasKey = resource->resourcePriv().getScratchKey().isValid() || hasUniqueKey; in notifyCntReachedZero() local
431 if (!this->overBudget() && hasKey) { in notifyCntReachedZero()
/external/skia/src/gpu/
DGrResourceCache.cpp464 bool hasKey = resource->resourcePriv().getScratchKey().isValid() || hasUniqueKey; in notifyCntReachedZero() local
465 if (!this->overBudget() && hasKey) { in notifyCntReachedZero()
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMap.java310 public IRubyObject hasKey(ThreadContext context, IRubyObject key) { in hasKey() method in RubyMap