Home
last modified time | relevance | path

Searched refs:expectedKeys (Results 1 – 15 of 15) sorted by relevance

/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DHashMultimap.java69 int expectedKeys, int expectedValuesPerKey) { in create() argument
70 return new HashMultimap<K, V>(expectedKeys, expectedValuesPerKey); in create()
89 private HashMultimap(int expectedKeys, int expectedValuesPerKey) { in HashMultimap() argument
90 super(Maps.<K, Collection<V>>newHashMapWithExpectedSize(expectedKeys)); in HashMultimap()
DArrayListMultimap.java86 int expectedKeys, int expectedValuesPerKey) { in create() argument
87 return new ArrayListMultimap<K, V>(expectedKeys, expectedValuesPerKey); in create()
106 private ArrayListMultimap(int expectedKeys, int expectedValuesPerKey) { in ArrayListMultimap() argument
107 super(Maps.<K, Collection<V>>newHashMapWithExpectedSize(expectedKeys)); in ArrayListMultimap()
DLinkedListMultimap.java179 public static <K, V> LinkedListMultimap<K, V> create(int expectedKeys) { in create() argument
180 return new LinkedListMultimap<K, V>(expectedKeys); in create()
199 private LinkedListMultimap(int expectedKeys) { in LinkedListMultimap() argument
200 keyToKeyList = new HashMap<K, KeyList<K, V>>(expectedKeys); in LinkedListMultimap()
DLinkedHashMultimap.java98 int expectedKeys, int expectedValuesPerKey) { in create() argument
100 Maps.capacity(expectedKeys), in create()
/external/guava/guava/src/com/google/common/collect/
DHashMultimap.java74 int expectedKeys, int expectedValuesPerKey) { in create() argument
75 return new HashMultimap<K, V>(expectedKeys, expectedValuesPerKey); in create()
94 private HashMultimap(int expectedKeys, int expectedValuesPerKey) { in HashMultimap() argument
95 super(Maps.<K, Collection<V>>newHashMapWithExpectedSize(expectedKeys)); in HashMultimap()
DArrayListMultimap.java91 int expectedKeys, int expectedValuesPerKey) { in create() argument
92 return new ArrayListMultimap<K, V>(expectedKeys, expectedValuesPerKey); in create()
111 private ArrayListMultimap(int expectedKeys, int expectedValuesPerKey) { in ArrayListMultimap() argument
112 super(Maps.<K, Collection<V>>newHashMapWithExpectedSize(expectedKeys)); in ArrayListMultimap()
DMultimapBuilder.java94 public static MultimapBuilderWithKeys<Object> hashKeys(final int expectedKeys) { in hashKeys() argument
95 checkNonnegative(expectedKeys, "expectedKeys"); in hashKeys()
99 return new HashMap<K, Collection<V>>(expectedKeys); in hashKeys()
125 public static MultimapBuilderWithKeys<Object> linkedHashKeys(final int expectedKeys) {
126 checkNonnegative(expectedKeys, "expectedKeys");
130 return new LinkedHashMap<K, Collection<V>>(expectedKeys);
DLinkedListMultimap.java183 public static <K, V> LinkedListMultimap<K, V> create(int expectedKeys) { in create() argument
184 return new LinkedListMultimap<K, V>(expectedKeys); in create()
203 private LinkedListMultimap(int expectedKeys) { in LinkedListMultimap() argument
204 keyToKeyList = new HashMap<K, KeyList<K, V>>(expectedKeys); in LinkedListMultimap()
DLinkedHashMultimap.java102 int expectedKeys, int expectedValuesPerKey) { in create() argument
104 Maps.capacity(expectedKeys), in create()
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerTest.java128 Set<String> expectedKeys = Sets.newHashSetWithExpectedSize(nTasks + nSeededEntries); in testRemovalNotification_clear_basher() local
134 expectedKeys.add(s); in testRemovalNotification_clear_basher()
149 expectedKeys.add(s); in testRemovalNotification_clear_basher()
178 assertEquals(expectedKeys, Sets.union(map.keySet(), removalNotifications.keySet())); in testRemovalNotification_clear_basher()
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/
DFactoryModuleBuilderTest.java423 Set<Key<?>> expectedKeys = ImmutableSet.<Key<?>>of( in testFactoryBindingDependencies() local
434 validateDependencies(expectedKeys, injector.getBinding(AnimalHouse.class)); in testFactoryBindingDependencies()
437 validateDependencies(expectedKeys, injector.getBinding(AnimalHouse.class)); in testFactoryBindingDependencies()
446 validateDependencies(expectedKeys, binding); in testFactoryBindingDependencies()
454 private void validateDependencies(Set<Key<?>> expectedKeys, Binding<?> binding) { in validateDependencies() argument
460 assertEquals(expectedKeys, actualKeys); in validateDependencies()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/matchers/
DStartedServiceMatcher.java72 Set<String> expectedKeys = shadowOf(expectedIntent).getExtras().keySet(); in matchesSafely() local
73 intentsMatch = keys.equals(expectedKeys); in matchesSafely()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderTest.java465 Set<String> expectedKeys = Sets.newHashSetWithExpectedSize(nTasks + nSeededEntries); in testRemovalNotification_clear_basher() local
471 expectedKeys.add(s); in testRemovalNotification_clear_basher()
487 expectedKeys.add(s); in testRemovalNotification_clear_basher()
516 assertEquals(expectedKeys, Sets.union(cache.asMap().keySet(), removalNotifications.keySet())); in testRemovalNotification_clear_basher()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DULocaleTest.java4325 Set<String> expectedKeys = expectedKeywords.keySet(); in TestUnicodeLocaleExtension() local
4326 if (keys.size() != expectedKeys.size()) { in TestUnicodeLocaleExtension()
4328 + keys.size() + ", expected=" + expectedKeys.size() in TestUnicodeLocaleExtension()
4332 for (String expKey : expectedKeys) { in TestUnicodeLocaleExtension()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DULocaleTest.java4328 Set<String> expectedKeys = expectedKeywords.keySet(); in TestUnicodeLocaleExtension() local
4329 if (keys.size() != expectedKeys.size()) { in TestUnicodeLocaleExtension()
4331 + keys.size() + ", expected=" + expectedKeys.size() in TestUnicodeLocaleExtension()
4335 for (String expKey : expectedKeys) { in TestUnicodeLocaleExtension()