/external/guava/guava-tests/test/com/google/common/collect/ |
WellBehavedMapTest.java | 39 assertTrue(map.entrySet().contains(Maps.immutableEntry(Foo.X, 1))); 40 assertTrue(map.entrySet().contains(Maps.immutableEntry(Foo.Y, new Integer(2)))); 43 assertFalse(map.entrySet().contains(Maps.immutableEntry(Foo.X, 5))); 46 assertFalse(map.entrySet().contains(Maps.immutableEntry(Foo.T, 0))); 54 for (Map.Entry<Foo, Integer> entry : map.entrySet()) { 66 Map.Entry<Foo, Integer> entry1 = Iterables.getOnlyElement(map.entrySet()); 67 Map.Entry<Foo, Integer> entry2 = Iterables.getOnlyElement(map.entrySet()); 72 Set<Map.Entry<Foo, Integer>> entrySet = map.entrySet(); 74 assertTrue(entrySet.contains(entry1)) [all...] |
ForwardingMapTest.java | 95 @Override public Set<Entry<K, V>> entrySet() { 100 .entrySet() 228 forward().entrySet(); 229 assertEquals("[entrySet]", getCalls()); 251 final Set<Map.Entry<String, Boolean>> entrySet = createMock(Set.class); 257 expect(entrySet.iterator()) 263 replay(map, entrySet); 270 @Override public Set<Entry<String, Boolean>> entrySet() { 274 return entrySet.iterator(); 279 callAllPublicMethods(Set.class, forward.entrySet()); [all...] |
AbstractBiMapTest.java | 45 protected Set<Entry<Integer, String>> entrySet; 51 entrySet = bimap.entrySet(); 255 entrySet.add(Maps.immutableEntry(1, "one")); 263 entrySet.addAll(Collections.singleton(Maps.immutableEntry(1, "one"))); 270 entrySet.clear(); 271 assertTrue(entrySet.isEmpty()); 274 entrySet.clear(); 275 assertTrue(entrySet.isEmpty()); 280 assertFalse(entrySet.contains(Maps.immutableEntry(1, "one"))) [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
MapInterfaceTest.java | 181 Set<Entry<K, V>> entrySet = map.entrySet(); 196 assertTrue(entrySet.contains(mapEntry(key, value))); 210 assertEquals(map.size(), entrySet.size()); 211 assertEquals(entrySet.size() == 0, entrySet.isEmpty()); 212 assertEquals(!entrySet.isEmpty(), entrySet.iterator().hasNext()); 213 assertFalse(entrySet.contains("foo")); 218 for (Entry<K, V> entry : entrySet) { [all...] |
SortedMapInterfaceTest.java | 102 final Set<Entry<K, V>> entrySet; 110 entrySet = map.entrySet(); 119 assertFalse(entrySet.contains(entry)); 197 List<Entry<K, V>> list = toList(map.entrySet()); 201 assertEquals(expected, toList(headMap.entrySet())); 212 List<Entry<K, V>> list = toList(map.entrySet()); 216 assertEquals(expected, toList(tailMap.entrySet())); 227 List<Entry<K, V>> list = toList(map.entrySet()); 233 assertEquals(expected, toList(subMap.entrySet())); [all...] |
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
CtsReportUtil.java | 32 for (Map.Entry<String, String> entry: testMetrics.entrySet()) {
|
/external/guava/guava-tests/test/com/google/common/cache/ |
EmptyCachesTest.java | 270 Set<Entry<Object, Object>> entries = cache.asMap().entrySet(); 284 cache.asMap().entrySet().add(entryOf(1, 1)); 303 Set<Entry<Object, Object>> entrySet = cache.asMap().entrySet(); 304 entrySet.clear(); 305 checkEmpty(entrySet); 312 Set<Entry<Object, Object>> entrySet = cache.asMap().entrySet(); 313 assertFalse(entrySet.remove(null)); 314 assertFalse(entrySet.remove(entryOf(6, 6))) [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
WeakHashMapTest.java | 34 public Set entrySet() { 160 * @tests java.util.WeakHashMap#entrySet() 176 Set<Map.Entry<Object, Object>> entrySet = weakMap.entrySet(); 178 entrySet.size()); 179 Iterator<Map.Entry<Object, Object>> it = entrySet.iterator(); 186 assertTrue("Assert 3: Entry not in entry set", entrySet 199 entrySet.size()); 200 assertSame("Assert 5: Entries not identical", entrySet.iterator() 201 .next(), entrySet.iterator().next()) [all...] |
TreeMapExtendTest.java | 152 assertEquals(tm.entrySet(), treeMap.entrySet()); 161 assertEquals(subMap_default.entrySet(), treeMap.entrySet()); 327 Set entrySet = subMap_default.entrySet(); 328 assertFalse(entrySet.isEmpty()); 329 assertEquals(9, entrySet.size()); 331 entrySet = subMap_startExcluded_endExcluded.entrySet(); [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_MapTest2.java | 42 assertTrue("Should not have entries", !map.entrySet().iterator() 56 assertTrue("Should not have entries", !map.entrySet().iterator()
|
/external/guava/guava/src/com/google/common/collect/ |
AbstractMultiset.java | 34 * this class and implementing the {@link Multiset#entrySet()} method, plus 39 * the set returned by {@link Multiset#entrySet()}, as do many methods acting on 56 return entrySet().isEmpty(); 69 for (Entry<E> entry : entrySet()) { 164 private transient Set<Entry<E>> entrySet; 166 @Override public Set<Entry<E>> entrySet() { 167 Set<Entry<E>> result = entrySet; 168 return (result == null) ? entrySet = createEntrySet() : result; 171 class EntrySet extends Multisets.EntrySet<E> [all...] |
WellBehavedMap.java | 28 * intention of using its {@code entrySet()} method, you should 36 private Set<Entry<K, V>> entrySet; 44 * intercepts its {@code entrySet()} method by taking the 56 @Override public Set<Entry<K, V>> entrySet() { 57 Set<Entry<K, V>> es = entrySet; 61 return entrySet = Sets.transform(
|
ForwardingMap.java | 124 public Set<Entry<K, V>> entrySet() { 125 return delegate().entrySet(); 150 * the {@code iterator} method of {@link #entrySet}. If you override {@link 151 * #entrySet}, you may wish to override {@link #remove} to forward to this 161 Iterator<Entry<K, V>> entryIterator = entrySet().iterator(); 175 * method of {@link #entrySet}. In many cases, you may wish to override 181 Iterator<Entry<K, V>> entryIterator = entrySet().iterator(); 193 * ForwardingMap#entrySet}. In many cases, you may wish to override {@link 211 * of the {@code iterator} method of {@link #entrySet}. If you override {@link 212 * #entrySet}, you may wish to override {@link #containsKey} to forward t [all...] |
ForwardingMultiset.java | 81 public Set<Entry<E>> entrySet() { 82 return delegate().entrySet(); 116 * method of {@link #entrySet}. If you override {@link #entrySet}, you may 122 Iterator<Entry<E>> entryIterator = entrySet().iterator(); 131 * {@link #entrySet}. If you override {@link #entrySet}, you may wish to 137 for (Entry<?> entry : this.entrySet()) { 211 * int)}. {@link #entrySet()}. If you override any of these methods, you may 240 * ForwardingMultiset#entrySet}, and {@link ForwardingMultiset#remove(Object [all...] |
SortedMultisets.java | 157 private transient Set<Entry<E>> entrySet; 159 @Override public Set<Entry<E>> entrySet() { 160 Set<Entry<E>> result = entrySet; 161 return (result == null) ? entrySet = createEntrySet() : result; 165 return new Multisets.EntrySet<E>() { 175 return forwardMultiset().entrySet().size(); 193 return entrySet().toString();
|
SingletonImmutableMap.java | 82 private transient ImmutableSet<Entry<K, V>> entrySet; 84 @Override public ImmutableSet<Entry<K, V>> entrySet() { 85 ImmutableSet<Entry<K, V>> es = entrySet; 86 return (es == null) ? (entrySet = ImmutableSet.of(entry())) : es; 142 Entry<?, ?> entry = that.entrySet().iterator().next();
|
/libcore/support/src/test/java/tests/support/ |
Support_MapTest2.java | 42 assertTrue("Should not have entries", !map.entrySet().iterator() 56 assertTrue("Should not have entries", !map.entrySet().iterator()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
MultisetWritesTester.java | 121 getMultiset().entrySet().clear(); 122 assertTrue("multiset not empty after entrySet().clear()", 129 Iterator<Multiset.Entry<E>> iterator = getMultiset().entrySet().iterator(); 131 "non-empty multiset.entrySet() iterator.hasNext() returned false", 133 assertEquals("multiset.entrySet() iterator.next() returned incorrect entry", 136 "size 1 multiset.entrySet() iterator.hasNext() returned true " 141 "multiset isn't empty after multiset.entrySet() iterator.remove()", 148 Iterator<Multiset.Entry<E>> iterator = getMultiset().entrySet().iterator(); 150 "non-empty multiset.entrySet() iterator.hasNext() returned false", 154 fail("multiset.entrySet() iterator.remove() didn't throw an exception") [all...] |
MultisetReadsTester.java | 79 assertTrue("multiset.entrySet() didn't contain [present, 1]", 80 getMultiset().entrySet().contains( 85 assertFalse("multiset.entrySet() contains [missing, 0]", 86 getMultiset().entrySet().contains( 91 assertFalse("multiset.entrySet() contains a non-entry", 92 getMultiset().entrySet().contains(samples.e0)); 96 assertEquals("calling multiset.entrySet() twice returned unequal sets", 97 getMultiset().entrySet(), getMultiset().entrySet()); 102 assertEquals("multiset.entrySet() has incorrect hash code" [all...] |
MultisetNavigationTester.java | 175 assertEquals(Arrays.asList(b, c), copyToList(sortedMultiset.entrySet())); 229 assertEquals(Arrays.asList(a, b), copyToList(sortedMultiset.entrySet())); 244 Iterators.addAll(ascending, sortedMultiset.entrySet().iterator()); 246 Iterators.addAll(descending, sortedMultiset.descendingMultiset().entrySet().iterator()); 442 assertTrue(multiset.entrySet().isEmpty()); 444 assertEquals(0, multiset.entrySet().size()); 445 assertEquals(0, multiset.entrySet().toArray().length); 446 assertFalse(multiset.entrySet().iterator().hasNext()); 520 List<Entry<E>> entries = copyToList(sortedMultiset.entrySet()); 524 assertEquals(expected, copyToList(subMultiset.entrySet())); [all...] |
/libcore/luni/src/main/java/java/util/ |
AbstractMap.java | 177 * <p>This implementation calls {@code entrySet().clear()}. 180 entrySet().clear(); 190 Iterator<Map.Entry<K, V>> it = entrySet().iterator(); 214 Iterator<Map.Entry<K, V>> it = entrySet().iterator(); 231 public abstract Set<Map.Entry<K, V>> entrySet(); 253 for (Entry<K, V> entry : entrySet()) { 282 Iterator<Map.Entry<K, V>> it = entrySet().iterator(); 309 Iterator<Map.Entry<K, V>> it = entrySet().iterator(); 344 Iterator<Map.Entry<K, V>> setIterator = entrySet().iterator(); 380 for (Map.Entry<? extends K, ? extends V> entry : map.entrySet()) { [all...] |
/frameworks/ex/common/tests/src/com/android/common/ |
Rfc822ValidatorTest.java | 54 for (Map.Entry<String, String> e : fixes.entrySet()) { 69 for (Map.Entry<String, String> e : fixes.entrySet()) { 85 for (Map.Entry<String, String> e : fixes.entrySet()) {
|
/external/smack/src/org/apache/qpid/management/common/sasl/ |
JCAProvider.java | 50 for (Map.Entry<String, Class<? extends SaslClientFactory>> me : providerMap.entrySet())
|
/external/guava/guava-gwt/src/com/google/common/collect/ |
Multiset_CustomFieldSerializerBase.java | 60 int entryCount = instance.entrySet().size(); 62 for (Multiset.Entry<?> entry : instance.entrySet()) {
|
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/ |
SmallSortedMapTest.java | 236 Set<Map.Entry<Integer, Integer>> entrySet = map.entrySet(); 239 entrySet.contains(new SimpleEntry<Integer, Integer>(i, i + 1))); 241 entrySet.contains(new SimpleEntry<Integer, Integer>(i, i))); 247 Set<Map.Entry<Integer, Integer>> entrySet = map.entrySet(); 251 assertTrue(entrySet.add(entry)); 252 assertFalse(entrySet.add(entry)); 264 Set<Map.Entry<Integer, Integer>> entrySet = map.entrySet(); [all...] |