HomeSort by relevance Sort by last modified time
    Searched refs:entrySet (Results 1 - 25 of 1362) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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 96 @Override public Set<Entry<K, V>> entrySet() {
101 .entrySet()
232 forward().entrySet();
233 assertEquals("[entrySet]", getCalls());
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());
    [all...]
  /external/guava/guava-testlib/src/com/google/common/collect/testing/
MapInterfaceTest.java 182 Set<Entry<K, V>> entrySet = map.entrySet();
197 assertTrue(entrySet.contains(mapEntry(key, value)));
211 assertEquals(map.size(), entrySet.size());
212 assertEquals(entrySet.size() == 0, entrySet.isEmpty());
213 assertEquals(!entrySet.isEmpty(), entrySet.iterator().hasNext());
214 assertFalse(entrySet.contains("foo"));
219 for (Entry<K, V> entry : entrySet) {
    [all...]
  /external/guava/guava-testlib/src/com/google/common/collect/testing/google/
MultisetReadsTester.java 46 assertTrue("multiset.entrySet() didn't contain [present, 1]",
47 getMultiset().entrySet().contains(
52 assertFalse("multiset.entrySet() contains [missing, 0]",
53 getMultiset().entrySet().contains(
58 assertFalse("multiset.entrySet() contains a non-entry",
59 getMultiset().entrySet().contains(samples.e0));
63 assertEquals("calling multiset.entrySet() twice returned unequal sets",
64 getMultiset().entrySet(), getMultiset().entrySet());
69 assertEquals("multiset.entrySet() has incorrect hash code"
    [all...]
MultisetEntrySetTester.java 38 * Tests for {@code Multiset.entrySet}.
47 getMultiset().entrySet().clear();
48 assertTrue("multiset not empty after entrySet().clear()",
55 Iterator<Multiset.Entry<E>> iterator = getMultiset().entrySet().iterator();
57 "non-empty multiset.entrySet() iterator.hasNext() returned false",
59 assertEquals("multiset.entrySet() iterator.next() returned incorrect entry",
62 "size 1 multiset.entrySet() iterator.hasNext() returned true "
67 "multiset isn't empty after multiset.entrySet() iterator.remove()",
75 "multiset.entrySet.remove(presentEntry) returned false",
76 getMultiset().entrySet().remove
    [all...]
  /external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
MapEntrySetTester.java 41 * Tests {@link java.util.Map#entrySet}.
56 Set<Entry<K, V>> entrySet = getMap().entrySet();
57 Iterator<Entry<K, V>> entryItr = entrySet.iterator();
61 assertFalse(entrySet.contains(samples.e0));
66 .entrySet().contains(Helpers.mapEntry(IncomparableType.INSTANCE, samples.e0.getValue())));
71 .entrySet().contains(Helpers.mapEntry(samples.e0.getKey(), IncomparableType.INSTANCE)));
77 .entrySet().contains(Helpers.mapEntry(null, samples.e0.getValue())));
85 .entrySet().contains(Helpers.mapEntry(null, getValueForNullKey())));
91 .entrySet().contains(Helpers.mapEntry(samples.e0.getKey(), null)))
    [all...]
  /external/guava/guava/src/com/google/common/collect/
DescendingMultiset.java 102 private transient Set<Entry<E>> entrySet;
104 @Override public Set<Entry<E>> entrySet() {
105 Set<Entry<E>> result = entrySet;
106 return (result == null) ? entrySet = createEntrySet() : result;
110 return new Multisets.EntrySet<E>() {
120 return forwardMultiset().entrySet().size();
138 return entrySet().toString();
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;
169 entrySet = result = createEntrySet();
174 class EntrySet extends Multisets.EntrySet<E>
    [all...]
WellBehavedMap.java 29 * intention of using its {@code entrySet()} method, you should
39 private Set<Entry<K, V>> entrySet;
47 * intercepts its {@code entrySet()} method by taking the
59 @Override public Set<Entry<K, V>> entrySet() {
60 Set<Entry<K, V>> es = entrySet;
64 return entrySet = new EntrySet();
67 private final class EntrySet extends Maps.EntrySet<K, V> {
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 Iterators.clear(entrySet().iterator());
189 * ForwardingMap#entrySet}. In many cases, you may wish to override {@link
205 * of the {@code iterator} method of {@link #entrySet}. If you override {@link
206 * #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 Iterators.clear(entrySet().iterator());
127 * {@link #entrySet}. If you override {@link #entrySet}, you may wish to
133 for (Entry<?> entry : this.entrySet()) {
207 * int)}. {@link #entrySet()}. If you override any of these methods, you may
235 * ForwardingMultiset#entrySet}, and {@link ForwardingMultiset#remove(Object
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DescendingMultiset.java 102 private transient Set<Entry<E>> entrySet;
104 @Override public Set<Entry<E>> entrySet() {
105 Set<Entry<E>> result = entrySet;
106 return (result == null) ? entrySet = createEntrySet() : result;
110 return new Multisets.EntrySet<E>() {
120 return forwardMultiset().entrySet().size();
138 return entrySet().toString();
ImmutableEnumMap.java 31 for (Map.Entry<K, V> entry : checkNotNull(map).entrySet()) {
  /external/guava/guava-tests/test/com/google/common/cache/
EmptyCachesTest.java 272 Set<Entry<Object, Object>> entries = cache.asMap().entrySet();
286 cache.asMap().entrySet().add(entryOf(1, 1));
305 Set<Entry<Object, Object>> entrySet = cache.asMap().entrySet();
306 entrySet.clear();
307 checkEmpty(entrySet);
314 Set<Entry<Object, Object>> entrySet = cache.asMap().entrySet();
315 assertFalse(entrySet.remove(null));
316 assertFalse(entrySet.remove(entryOf(6, 6)))
    [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-gwt/src/com/google/common/collect/
Multiset_CustomFieldSerializerBase.java 47 int entryCount = instance.entrySet().size();
49 for (Multiset.Entry<?> entry : instance.entrySet()) {
  /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()
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
TreeMapExtendTest.java 150 assertEquals(tm.entrySet(), treeMap.entrySet());
159 assertEquals(subMap_default.entrySet(), treeMap.entrySet());
325 Set entrySet = subMap_default.entrySet();
326 assertFalse(entrySet.isEmpty());
327 assertEquals(9, entrySet.size());
329 entrySet = subMap_startExcluded_endExcluded.entrySet();
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
TreeBasedTableTest.java 349 Set<Map.Entry<Integer, Character>> entrySet = row.entrySet();
350 assertTrue(entrySet.contains(Maps.immutableEntry(10, 'X')));
351 assertTrue(entrySet.contains(Maps.immutableEntry(20, 'X')));
352 assertFalse(entrySet.contains(Maps.immutableEntry(15, 'X')));
353 entrySet = row.tailMap(15).entrySet();
354 assertFalse(entrySet.contains(Maps.immutableEntry(10, 'X')));
355 assertTrue(entrySet.contains(Maps.immutableEntry(20, 'X')));
356 assertFalse(entrySet.contains(Maps.immutableEntry(15, 'X')))
    [all...]
  /libcore/ojluni/src/main/java/java/util/
AbstractMap.java 34 * class and provide an implementation for the <tt>entrySet</tt> method, which
43 * <tt>entrySet().iterator()</tt> must additionally implement its
81 * <p>This implementation returns <tt>entrySet().size()</tt>.
84 return entrySet().size();
99 * <p>This implementation iterates over <tt>entrySet()</tt> searching
109 Iterator<Entry<K,V>> i = entrySet().iterator();
129 * <p>This implementation iterates over <tt>entrySet()</tt> searching
140 Iterator<Map.Entry<K,V>> i = entrySet().iterator();
160 * <p>This implementation iterates over <tt>entrySet()</tt> searching
171 Iterator<Entry<K,V>> i = entrySet().iterator()
    [all...]
SortedMap.java 34 * {@code entrySet}, {@code keySet} and {@code values} methods).
283 Set<Map.Entry<K, V>> entrySet();
  /frameworks/ex/common/tests/src/com/android/common/
Rfc822ValidatorTest.java 98 for (Map.Entry<String, String> e : fixes.entrySet()) {
113 for (Map.Entry<String, String> e : fixes.entrySet()) {
129 for (Map.Entry<String, String> e : fixes.entrySet()) {
  /libcore/luni/src/test/java/libcore/java/util/
LinkedHashMapTest.java 39 for (Map.Entry<String, String> e : m.entrySet()) {
60 for (Map.Entry<String, String> e : m.entrySet()) {
68 for (Map.Entry<String, String> e : m.entrySet()) {
92 for (Map.Entry<String, String> e : m.entrySet()) {
101 for (Map.Entry<String, String> e : m.entrySet()) {
119 for (Map.Entry<String, String> e : m.entrySet()) {
137 for (Map.Entry<String, String> e : m.entrySet()) {
146 for (Map.Entry<String, String> e : m.entrySet()) {
163 for (Map.Entry<String, String> e : m.entrySet()) {
180 for (Map.Entry<String, String> e : m.entrySet()) {
    [all...]
  /external/caliper/caliper/src/main/java/com/google/caliper/model/
StringMapFunnel.java 33 for (Entry<String, String> entry : from.entrySet()) {
  /frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
LinkedHashMap_Delegate.java 33 Iterator<Entry<K, V>> iterator = map.entrySet().iterator();

Completed in 2634 milliseconds

1 2 3 4 5 6 7 8 91011>>