Home
last modified time | relevance | path

Searched refs:entrySet (Results 1 – 25 of 824) sorted by relevance

12345678910>>...33

/external/guava/guava-testlib/src/com/google/common/collect/testing/
DMapInterfaceTest.java182 Set<Entry<K, V>> entrySet = map.entrySet(); in assertInvariants() local
197 assertTrue(entrySet.contains(mapEntry(key, value))); in assertInvariants()
211 assertEquals(map.size(), entrySet.size()); in assertInvariants()
212 assertEquals(entrySet.size() == 0, entrySet.isEmpty()); in assertInvariants()
213 assertEquals(!entrySet.isEmpty(), entrySet.iterator().hasNext()); in assertInvariants()
214 assertFalse(entrySet.contains("foo")); in assertInvariants()
219 for (Entry<K, V> entry : entrySet) { in assertInvariants()
228 assertEquals(expectedEntrySetHash, entrySet.hashCode()); in assertInvariants()
229 assertTrue(entrySet.containsAll(new HashSet<Entry<K, V>>(entrySet))); in assertInvariants()
230 assertTrue(entrySet.equals(new HashSet<Entry<K, V>>(entrySet))); in assertInvariants()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DWellBehavedMapTest.java39 assertTrue(map.entrySet().contains(Maps.immutableEntry(Foo.X, 1))); in testEntrySet_contain()
40 assertTrue(map.entrySet().contains(Maps.immutableEntry(Foo.Y, new Integer(2)))); in testEntrySet_contain()
43 assertFalse(map.entrySet().contains(Maps.immutableEntry(Foo.X, 5))); in testEntrySet_contain()
46 assertFalse(map.entrySet().contains(Maps.immutableEntry(Foo.T, 0))); in testEntrySet_contain()
54 for (Map.Entry<Foo, Integer> entry : map.entrySet()) { in testEntry_setValue()
66 Map.Entry<Foo, Integer> entry1 = Iterables.getOnlyElement(map.entrySet()); in testEntriesAreMutableAndConsistent()
67 Map.Entry<Foo, Integer> entry2 = Iterables.getOnlyElement(map.entrySet()); in testEntriesAreMutableAndConsistent()
72 Set<Map.Entry<Foo, Integer>> entrySet = map.entrySet(); in testEntriesAreMutableAndConsistent() local
74 assertTrue(entrySet.contains(entry1)); in testEntriesAreMutableAndConsistent()
75 assertTrue(entrySet.contains(entry2)); in testEntriesAreMutableAndConsistent()
[all …]
DForwardingMapTest.java96 @Override public Set<Entry<K, V>> entrySet() { in entrySet() method in ForwardingMapTest.StandardImplForwardingMap
101 .entrySet() in entrySet()
232 forward().entrySet();
255 final Set<Map.Entry<String, Boolean>> entrySet = createMock(Set.class);
261 expect(entrySet.iterator())
267 replay(map, entrySet);
274 @Override public Set<Entry<String, Boolean>> entrySet() {
278 return entrySet.iterator();
283 callAllPublicMethods(Set.class, forward.entrySet());
285 verify(map, entrySet);
[all …]
DTreeBasedTableTest.java392 Set<Map.Entry<Integer, Character>> entrySet = row.entrySet(); in testRowEntrySetContains() local
393 assertTrue(entrySet.contains(Maps.immutableEntry(10, 'X'))); in testRowEntrySetContains()
394 assertTrue(entrySet.contains(Maps.immutableEntry(20, 'X'))); in testRowEntrySetContains()
395 assertFalse(entrySet.contains(Maps.immutableEntry(15, 'X'))); in testRowEntrySetContains()
396 entrySet = row.tailMap(15).entrySet(); in testRowEntrySetContains()
397 assertFalse(entrySet.contains(Maps.immutableEntry(10, 'X'))); in testRowEntrySetContains()
398 assertTrue(entrySet.contains(Maps.immutableEntry(20, 'X'))); in testRowEntrySetContains()
399 assertFalse(entrySet.contains(Maps.immutableEntry(15, 'X'))); in testRowEntrySetContains()
409 Set<Map.Entry<Integer, Character>> entrySet = row.tailMap(15).entrySet(); in testRowEntrySetRemove() local
410 assertFalse(entrySet.remove(Maps.immutableEntry(10, 'X'))); in testRowEntrySetRemove()
[all …]
DImmutableSortedMapTest.java121 for (Entry<K, V> entry : map.entrySet()) { in assertMoreInvariants()
126 assertEquals("{" + joiner.join(map.entrySet()) + "}", in assertMoreInvariants()
128 assertEquals("[" + joiner.join(map.entrySet()) + "]", in assertMoreInvariants()
129 map.entrySet().toString()); in assertMoreInvariants()
135 assertEquals(Sets.newHashSet(map.entrySet()), map.entrySet()); in assertMoreInvariants()
662 for (Entry<K, V> entry : map.entrySet()) { in assertMapEquals()
692 assertTrue(map.entrySet().contains(Maps.immutableEntry("a", new IntHolder(3)))); in testMutableValues()
695 assertEquals(intMap.hashCode(), map.entrySet().hashCode()); in testMutableValues()
703 SerializableTester.reserializeAndAssert(map.entrySet()); in testViewSerialization()
713 assertThat(map.entrySet()).has().exactly( in testHeadMapInclusive()
[all …]
DMapConstraintsTest.java111 assertEquals(map.entrySet(), constrained.entrySet()); in testConstrainedMapLegal()
118 assertThat(map.entrySet()).has().exactly( in testConstrainedMapLegal()
145 assertEquals(Collections.emptySet(), map.entrySet()); in testConstrainedMapIllegal()
146 assertEquals(Collections.emptySet(), constrained.entrySet()); in testConstrainedMapIllegal()
161 assertEquals(map.entrySet(), constrained.entrySet()); in testConstrainedBiMapLegal()
166 assertThat(map.entrySet()).has().exactly( in testConstrainedBiMapLegal()
207 assertEquals(Collections.emptySet(), map.entrySet()); in testConstrainedBiMapIllegal()
208 assertEquals(Collections.emptySet(), constrained.entrySet()); in testConstrainedBiMapIllegal()
271 = multimap.asMap().entrySet().iterator().next(); in testConstrainedTypePreservingList()
284 = multimap.asMap().entrySet().iterator().next(); in testConstrainedTypePreservingRandomAccessList()
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DEmptyCachesTest.java272 Set<Entry<Object, Object>> entries = cache.asMap().entrySet(); in testEntrySet_nullToArray()
286 cache.asMap().entrySet().add(entryOf(1, 1)); in testEntrySet_addNotSupported()
305 Set<Entry<Object, Object>> entrySet = cache.asMap().entrySet(); in testEntrySet_clear() local
306 entrySet.clear(); in testEntrySet_clear()
307 checkEmpty(entrySet); in testEntrySet_clear()
314 Set<Entry<Object, Object>> entrySet = cache.asMap().entrySet(); in testEntrySet_empty_remove() local
315 assertFalse(entrySet.remove(null)); in testEntrySet_empty_remove()
316 assertFalse(entrySet.remove(entryOf(6, 6))); in testEntrySet_empty_remove()
317 assertFalse(entrySet.remove(entryOf(-6, -6))); in testEntrySet_empty_remove()
318 assertFalse(entrySet.removeAll(asList(null, entryOf(0, 0), entryOf(15, 15)))); in testEntrySet_empty_remove()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetEntrySetTester.java47 getMultiset().entrySet().clear(); in testEntrySet_clear()
55 Iterator<Multiset.Entry<E>> iterator = getMultiset().entrySet().iterator(); in testEntrySet_iteratorRemovePropagates()
76 getMultiset().entrySet().remove( in testEntrySet_removePresent()
88 getMultiset().entrySet().remove( in testEntrySet_removeAbsent()
100 getMultiset().entrySet().removeAll( in testEntrySet_removeAllPresent()
112 getMultiset().entrySet().removeAll( in testEntrySet_removeAllAbsent()
124 getMultiset().entrySet().retainAll( in testEntrySet_retainAllPresent()
136 getMultiset().entrySet().retainAll( in testEntrySet_retainAllAbsent()
149 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryViewReflectsRemove()
163 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsIteratorRemove()
[all …]
DMultisetReadsTester.java47 getMultiset().entrySet().contains( in testEntrySet_contains()
53 getMultiset().entrySet().contains( in testEntrySet_contains_count0()
59 getMultiset().entrySet().contains(samples.e0)); in testEntrySet_contains_nonentry()
64 getMultiset().entrySet(), getMultiset().entrySet()); in testEntrySet_twice()
70 0, getMultiset().entrySet().hashCode()); in testEntrySet_hashCode_size0()
76 1 ^ samples.e0.hashCode(), getMultiset().entrySet().hashCode()); in testEntrySet_hashCode_size1()
DMultisetNavigationTester.java175 assertEquals(Arrays.asList(b, c), copyToList(sortedMultiset.entrySet())); in testPollFirst()
229 assertEquals(Arrays.asList(a, b), copyToList(sortedMultiset.entrySet())); in testPollLast()
244 Iterators.addAll(ascending, sortedMultiset.entrySet().iterator()); in testDescendingNavigation()
246 Iterators.addAll(descending, sortedMultiset.descendingMultiset().entrySet().iterator()); in testDescendingNavigation()
442 assertTrue(multiset.entrySet().isEmpty()); in testEmptyRangeSubMultiset()
444 assertEquals(0, multiset.entrySet().size()); in testEmptyRangeSubMultiset()
445 assertEquals(0, multiset.entrySet().toArray().length); in testEmptyRangeSubMultiset()
446 assertFalse(multiset.entrySet().iterator().hasNext()); in testEmptyRangeSubMultiset()
520 List<Entry<E>> entries = copyToList(sortedMultiset.entrySet()); in testSubMultisetEntrySet()
524 assertEquals(expected, copyToList(subMultiset.entrySet())); in testSubMultisetEntrySet()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DMapEntrySetTester.java56 Set<Entry<K, V>> entrySet = getMap().entrySet(); in testEntrySetIteratorRemove() local
57 Iterator<Entry<K, V>> entryItr = entrySet.iterator(); in testEntrySetIteratorRemove()
61 assertFalse(entrySet.contains(samples.e0)); in testEntrySetIteratorRemove()
66 .entrySet().contains(Helpers.mapEntry(IncomparableType.INSTANCE, samples.e0.getValue()))); in testContainsEntryWithIncomparableKey()
71 .entrySet().contains(Helpers.mapEntry(samples.e0.getKey(), IncomparableType.INSTANCE))); in testContainsEntryWithIncomparableValue()
77 .entrySet().contains(Helpers.mapEntry(null, samples.e0.getValue()))); in testContainsEntryWithNullKeyAbsent()
85 .entrySet().contains(Helpers.mapEntry(null, getValueForNullKey()))); in testContainsEntryWithNullKeyPresent()
91 .entrySet().contains(Helpers.mapEntry(samples.e0.getKey(), null))); in testContainsEntryWithNullValueAbsent()
99 .entrySet().contains(Helpers.mapEntry(getKeyForNullValue(), null))); in testContainsEntryWithNullValuePresent()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DTreeBasedTableTest.java349 Set<Map.Entry<Integer, Character>> entrySet = row.entrySet(); in testRowEntrySetContains() local
350 assertTrue(entrySet.contains(Maps.immutableEntry(10, 'X'))); in testRowEntrySetContains()
351 assertTrue(entrySet.contains(Maps.immutableEntry(20, 'X'))); in testRowEntrySetContains()
352 assertFalse(entrySet.contains(Maps.immutableEntry(15, 'X'))); in testRowEntrySetContains()
353 entrySet = row.tailMap(15).entrySet(); in testRowEntrySetContains()
354 assertFalse(entrySet.contains(Maps.immutableEntry(10, 'X'))); in testRowEntrySetContains()
355 assertTrue(entrySet.contains(Maps.immutableEntry(20, 'X'))); in testRowEntrySetContains()
356 assertFalse(entrySet.contains(Maps.immutableEntry(15, 'X'))); in testRowEntrySetContains()
366 Set<Map.Entry<Integer, Character>> entrySet = row.tailMap(15).entrySet(); in testRowEntrySetRemove() local
367 assertFalse(entrySet.remove(Maps.immutableEntry(10, 'X'))); in testRowEntrySetRemove()
[all …]
DImmutableSortedMapTest.java61 for (Entry<K, V> entry : map.entrySet()) { in assertMoreInvariants()
66 assertEquals("{" + joiner.join(map.entrySet()) + "}", in assertMoreInvariants()
68 assertEquals("[" + joiner.join(map.entrySet()) + "]", in assertMoreInvariants()
69 map.entrySet().toString()); in assertMoreInvariants()
75 assertEquals(Sets.newHashSet(map.entrySet()), map.entrySet()); in assertMoreInvariants()
573 for (Entry<K, V> entry : map.entrySet()) { in assertMapEquals()
603 assertTrue(map.entrySet().contains(Maps.immutableEntry("a", new IntHolder(3)))); in testMutableValues()
606 assertEquals(intMap.hashCode(), map.entrySet().hashCode()); in testMutableValues()
614 assertThat(map.entrySet()).has().exactly( in testHeadMapInclusive()
623 assertThat(map.entrySet()).has().exactly(Maps.immutableEntry("one", 1)).inOrder(); in testHeadMapExclusive()
[all …]
DMapConstraintsTest.java109 assertEquals(map.entrySet(), constrained.entrySet()); in testConstrainedMapLegal()
116 assertThat(map.entrySet()).has().exactly( in testConstrainedMapLegal()
143 assertEquals(Collections.emptySet(), map.entrySet()); in testConstrainedMapIllegal()
144 assertEquals(Collections.emptySet(), constrained.entrySet()); in testConstrainedMapIllegal()
159 assertEquals(map.entrySet(), constrained.entrySet()); in testConstrainedBiMapLegal()
164 assertThat(map.entrySet()).has().exactly( in testConstrainedBiMapLegal()
205 assertEquals(Collections.emptySet(), map.entrySet()); in testConstrainedBiMapIllegal()
206 assertEquals(Collections.emptySet(), constrained.entrySet()); in testConstrainedBiMapIllegal()
269 = multimap.asMap().entrySet().iterator().next(); in testConstrainedTypePreservingList()
282 = multimap.asMap().entrySet().iterator().next(); in testConstrainedTypePreservingRandomAccessList()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DSmallSortedMapTest.java239 Set<Map.Entry<Integer, Integer>> entrySet = map.entrySet(); in testEntrySetContains() local
242 entrySet.contains(new SimpleEntry<Integer, Integer>(i, i + 1))); in testEntrySetContains()
244 entrySet.contains(new SimpleEntry<Integer, Integer>(i, i))); in testEntrySetContains()
250 Set<Map.Entry<Integer, Integer>> entrySet = map.entrySet(); in testEntrySetAdd() local
254 assertTrue(entrySet.add(entry)); in testEntrySetAdd()
255 assertFalse(entrySet.add(entry)); in testEntrySetAdd()
267 Set<Map.Entry<Integer, Integer>> entrySet = map.entrySet(); in testEntrySetRemove() local
274 assertTrue(entrySet.remove(entry)); in testEntrySetRemove()
275 assertFalse(entrySet.remove(entry)); in testEntrySetRemove()
288 map.entrySet().clear(); in testEntrySetClear()
[all …]
/external/guava/guava/src/com/google/common/collect/
DAbstractMultiset.java56 return entrySet().isEmpty(); in isEmpty()
69 for (Entry<E> entry : entrySet()) { in count()
164 private transient Set<Entry<E>> entrySet; field in AbstractMultiset
166 @Override public Set<Entry<E>> entrySet() { in entrySet() method in AbstractMultiset
167 Set<Entry<E>> result = entrySet; in entrySet()
169 entrySet = result = createEntrySet(); in entrySet()
212 return entrySet().hashCode(); in hashCode()
222 return entrySet().toString(); in toString()
DMultisets.java121 transient Set<Multiset.Entry<E>> entrySet; field in Multisets.UnmodifiableMultiset
124 @Override public Set<Multiset.Entry<E>> entrySet() { in entrySet() method in Multisets.UnmodifiableMultiset
125 Set<Multiset.Entry<E>> es = entrySet; in entrySet()
129 ? entrySet = (Set) Collections.unmodifiableSet(delegate.entrySet()) in entrySet()
299 return Sets.filter(unfiltered.entrySet(), new Predicate<Entry<E>>() { in createEntrySet()
409 = multiset1.entrySet().iterator();
411 = multiset2.entrySet().iterator();
475 final Iterator<Entry<E>> iterator1 = multiset1.entrySet().iterator();
551 = multiset1.entrySet().iterator();
553 = multiset2.entrySet().iterator();
[all …]
DImmutableMultiset.java195 return copyFromEntries(multiset.entrySet()); in copyOfInternal()
239 final Iterator<Entry<E>> entryIterator = entrySet().iterator(); in iterator()
323 for (Multiset.Entry<E> entry : entrySet()) { in copyIntoArray()
335 return Sets.hashCodeImpl(entrySet()); in hashCode()
339 return entrySet().toString(); in toString()
342 private transient ImmutableSet<Entry<E>> entrySet;
345 public ImmutableSet<Entry<E>> entrySet() { in entrySet() method
346 ImmutableSet<Entry<E>> es = entrySet; in entrySet()
347 return (es == null) ? (entrySet = createEntrySet()) : es; in entrySet()
423 return multiset.entrySet();
[all …]
DForwardingMultiset.java81 public Set<Entry<E>> entrySet() { in entrySet() method in ForwardingMultiset
82 return delegate().entrySet(); in entrySet()
122 Iterators.clear(entrySet().iterator()); in standardClear()
133 for (Entry<?> entry : this.entrySet()) { in standardCount()
295 return entrySet().hashCode(); in standardHashCode()
306 return entrySet().toString(); in standardToString()
DDescendingMultiset.java102 private transient Set<Entry<E>> entrySet; field in DescendingMultiset
104 @Override public Set<Entry<E>> entrySet() { in entrySet() method in DescendingMultiset
105 Set<Entry<E>> result = entrySet; in entrySet()
106 return (result == null) ? entrySet = createEntrySet() : result; in entrySet()
120 return forwardMultiset().entrySet().size(); in createEntrySet()
138 return entrySet().toString();
DForwardingMap.java124 public Set<Entry<K, V>> entrySet() { in entrySet() method in ForwardingMap
125 return delegate().entrySet(); in entrySet()
161 Iterator<Entry<K, V>> entryIterator = entrySet().iterator(); in standardRemove()
181 Iterators.clear(entrySet().iterator()); in standardClear()
274 return !entrySet().iterator().hasNext(); in standardIsEmpty()
296 return Sets.hashCodeImpl(entrySet()); in standardHashCode()
/external/mockito/src/test/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsGenericDeepStubsTest.java39 Set<? extends Map.Entry<? extends Cloneable, Set<Number>>> entries = mock.entrySet(); in generic_deep_mock_frenzy__look_at_these_chained_calls()
40 …? extends Map.Entry<? extends Cloneable,Set<Number>>> entriesIterator = mock.entrySet().iterator(); in generic_deep_mock_frenzy__look_at_these_chained_calls()
41 Map.Entry<? extends Cloneable, Set<Number>> nextEntry = mock.entrySet().iterator().next(); in generic_deep_mock_frenzy__look_at_these_chained_calls()
43 Cloneable cloneableKey = mock.entrySet().iterator().next().getKey(); in generic_deep_mock_frenzy__look_at_these_chained_calls()
44 Comparable<?> comparableKey = mock.entrySet().iterator().next().getKey(); in generic_deep_mock_frenzy__look_at_these_chained_calls()
46 Set<Number> value = mock.entrySet().iterator().next().getValue(); in generic_deep_mock_frenzy__look_at_these_chained_calls()
47 Iterator<Number> numbersIterator = mock.entrySet().iterator().next().getValue().iterator(); in generic_deep_mock_frenzy__look_at_these_chained_calls()
48 Number number = mock.entrySet().iterator().next().getValue().iterator().next(); in generic_deep_mock_frenzy__look_at_these_chained_calls()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableMultiset.java194 return copyFromEntries(multiset.entrySet()); in copyOfInternal()
238 final Iterator<Entry<E>> entryIterator = entrySet().iterator(); in iterator()
324 return Sets.hashCodeImpl(entrySet()); in hashCode()
328 return entrySet().toString(); in toString()
331 private transient ImmutableSet<Entry<E>> entrySet;
334 public ImmutableSet<Entry<E>> entrySet() { in entrySet() method
335 ImmutableSet<Entry<E>> es = entrySet; in entrySet()
336 return (es == null) ? (entrySet = createEntrySet()) : es; in entrySet()
412 return multiset.entrySet();
421 int distinct = multiset.entrySet().size();
[all …]
DDescendingMultiset.java102 private transient Set<Entry<E>> entrySet; field in DescendingMultiset
104 @Override public Set<Entry<E>> entrySet() { in entrySet() method in DescendingMultiset
105 Set<Entry<E>> result = entrySet; in entrySet()
106 return (result == null) ? entrySet = createEntrySet() : result; in entrySet()
120 return forwardMultiset().entrySet().size(); in createEntrySet()
138 return entrySet().toString();
/external/cldr/tools/java/org/unicode/cldr/tool/
DLocaleReplacements.java46 for (Entry<String, Map<String, Map<String, String>>> entry : lstreg.entrySet()) {
50 for (Entry<String, Map<String, String>> itemAndData : subtype2data.entrySet()) {
100 …<String, Map<String, R2<Set<String>, String>>> entry : type2item2replacementAndReason.entrySet()) {
105 … for (Entry<String, R2<Set<String>, String>> entry2 : item2replacementAndReason.entrySet()) {
133 …<String, Map<String, R2<Set<String>, String>>> entry : type2item2replacementAndReason.entrySet()) {
136 … for (Entry<String, R2<Set<String>, String>> entry2 : item2replacementAndReason.entrySet()) {
213 …ng, Relation<String, R2<String, Set<String>>>> entry : type2reason2itemAndreplacement.entrySet()) { in main()
215 for (Entry<String, R2<String, Set<String>>> entry2 : entry.getValue().entrySet()) { in main()
226 for (Entry<String, String> entry : fixed.entrySet()) { in main()
230 … for (Entry<String, Map<String, R2<List<String>, String>>> entry : localeAliasInfo.entrySet()) { in main()
[all …]

12345678910>>...33