Home
last modified time | relevance | path

Searched refs:entryIterator (Results 1 – 25 of 32) sorted by relevance

12

/external/guava/guava/src/com/google/common/collect/
DAbstractSortedMultiset.java70 Iterator<Entry<E>> entryIterator = entryIterator();
71 return entryIterator.hasNext() ? entryIterator.next() : null;
76 Iterator<Entry<E>> entryIterator = descendingEntryIterator();
77 return entryIterator.hasNext() ? entryIterator.next() : null;
82 Iterator<Entry<E>> entryIterator = entryIterator();
83 if (entryIterator.hasNext()) {
84 Entry<E> result = entryIterator.next();
86 entryIterator.remove();
94 Iterator<Entry<E>> entryIterator = descendingEntryIterator();
95 if (entryIterator.hasNext()) {
[all …]
DForwardingMap.java161 Iterator<Entry<K, V>> entryIterator = entrySet().iterator(); in standardRemove() local
162 while (entryIterator.hasNext()) { in standardRemove()
163 Entry<K, V> entry = entryIterator.next(); in standardRemove()
166 entryIterator.remove(); in standardRemove()
181 Iterator<Entry<K, V>> entryIterator = entrySet().iterator(); in standardClear() local
182 while (entryIterator.hasNext()) { in standardClear()
183 entryIterator.next(); in standardClear()
184 entryIterator.remove(); in standardClear()
DMultisets.java512 Iterator<Entry<E>> entryIterator() { in intersection() method in Multisets
589 Iterator<Entry<E>> entryIterator = multisetToModify.entrySet().iterator();
591 while (entryIterator.hasNext()) {
592 Entry<E> entry = entryIterator.next();
595 entryIterator.remove();
643 Iterator<Entry<E>> entryIterator = multisetToModify.entrySet().iterator();
644 while (entryIterator.hasNext()) {
645 Entry<E> entry = entryIterator.next();
648 entryIterator.remove();
884 private final Iterator<Entry<E>> entryIterator;
[all …]
DForwardingSortedMap.java142 Iterator<Entry<Object, V>> entryIterator = in standardRemove() local
144 if (entryIterator.hasNext()) { in standardRemove()
145 Entry<Object, V> ceilingEntry = entryIterator.next(); in standardRemove()
148 entryIterator.remove(); in standardRemove()
DForwardingMultiset.java122 Iterator<Entry<E>> entryIterator = entrySet().iterator(); in standardClear() local
123 while (entryIterator.hasNext()) { in standardClear()
124 entryIterator.next(); in standardClear()
125 entryIterator.remove(); in standardClear()
DAbstractMapBasedMultiset.java91 Iterator<Entry<E>> entryIterator() { in entryIterator() method in AbstractMapBasedMultiset
166 final Iterator<Map.Entry<E, Count>> entryIterator;
172 this.entryIterator = backingMap.entrySet().iterator();
177 return occurrencesLeft > 0 || entryIterator.hasNext();
183 currentEntry = entryIterator.next();
200 entryIterator.remove();
DAbstractMultiset.java129 Iterators.clear(entryIterator()); in clear()
160 abstract Iterator<Entry<E>> entryIterator(); in entryIterator() method in AbstractMultiset
177 return entryIterator(); in iterator()
DDescendingImmutableSortedMultiset.java64 return forward.entryIterator(); in descendingEntryIterator()
83 UnmodifiableIterator<Entry<E>> entryIterator() { in entryIterator() method in DescendingImmutableSortedMultiset
DImmutableMultiset.java247 final Iterator<Entry<E>> entryIterator = entryIterator(); in iterator() local
255 return (remaining > 0) || entryIterator.hasNext(); in iterator()
261 Entry<E> entry = entryIterator.next(); in iterator()
356 abstract UnmodifiableIterator<Entry<E>> entryIterator(); in entryIterator() method
373 return multiset.entryIterator(); in iterator()
DStandardTable.java879 Iterator<Entry<C, V>> entryIterator = Iterators.emptyIterator();
883 if (entryIterator.hasNext()) {
884 Entry<C, V> entry = entryIterator.next();
890 entryIterator = mapIterator.next().entrySet().iterator();
1166 final Iterator<Entry<K, V>> entryIterator = map.entrySet().iterator();
1169 return entryIterator.hasNext();
1172 return entryIterator.next().getKey();
1175 entryIterator.remove();
1185 final Iterator<Entry<K, V>> entryIterator = map.entrySet().iterator();
1188 return entryIterator.hasNext();
[all …]
DEmptyImmutableMultiset.java49 UnmodifiableIterator<Entry<Object>> entryIterator() { in entryIterator() method in EmptyImmutableMultiset
DSortedMultisets.java155 abstract Iterator<Entry<E>> entryIterator(); in entryIterator() method
171 return entryIterator(); in createEntrySet()
DEmptyImmutableSortedMultiset.java69 UnmodifiableIterator<Entry<E>> entryIterator() { in entryIterator() method in EmptyImmutableSortedMultiset
DRegularImmutableMultiset.java71 UnmodifiableIterator<Entry<E>> entryIterator() { in entryIterator() method in RegularImmutableMultiset
DImmutableMultimap.java602 final Iterator<? extends Entry<?, V>> entryIterator in iterator() local
607 return entryIterator.hasNext(); in iterator()
611 return entryIterator.next().getValue(); in iterator()
DImmutableSortedMap.java558 final UnmodifiableIterator<Entry<K, V>> entryIterator = entries.iterator();
562 return entryIterator.hasNext();
566 return entryIterator.next().getValue();
DAbstractMultimap.java894 final Iterator<Map.Entry<K, Collection<V>>> entryIterator in iterator()
900 return entryIterator.hasNext(); in iterator()
904 entry = entryIterator.next(); in iterator()
911 entryIterator.remove(); in iterator()
DRegularImmutableSortedMultiset.java99 UnmodifiableIterator<Multiset.Entry<E>> entryIterator() {
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DAbstractMapBasedMultiset.java88 Iterator<Entry<E>> entryIterator() { in entryIterator() method in AbstractMapBasedMultiset
163 final Iterator<Map.Entry<E, Count>> entryIterator;
169 this.entryIterator = backingMap.entrySet().iterator();
174 return occurrencesLeft > 0 || entryIterator.hasNext();
180 currentEntry = entryIterator.next();
197 entryIterator.remove();
DImmutableMultimap.java592 final Iterator<? extends Entry<?, V>> entryIterator in iterator() local
597 return entryIterator.hasNext(); in iterator()
601 return entryIterator.next().getValue(); in iterator()
/external/guava/guava-tests/test/com/google/common/collect/
DLinkedHashMultimapTest.java96 Iterator<Map.Entry<String, Integer>> entryIterator = in assertOrderingReadOnly() local
98 assertEquals(Maps.immutableEntry("foo", 5), entryIterator.next()); in assertOrderingReadOnly()
99 assertEquals(Maps.immutableEntry("bar", 4), entryIterator.next()); in assertOrderingReadOnly()
100 assertEquals(Maps.immutableEntry("foo", 3), entryIterator.next()); in assertOrderingReadOnly()
101 assertEquals(Maps.immutableEntry("cow", 2), entryIterator.next()); in assertOrderingReadOnly()
102 assertEquals(Maps.immutableEntry("bar", 1), entryIterator.next()); in assertOrderingReadOnly()
DMapsTransformValuesTest.java230 Iterator<Map.Entry<String, String>> entryIterator = entries.iterator(); in testTransformChangesAreReflectedInUnderlyingMap() local
231 entryIterator.next(); in testTransformChangesAreReflectedInUnderlyingMap()
232 entryIterator.remove(); in testTransformChangesAreReflectedInUnderlyingMap()
DMapsTransformValuesUnmodifiableIteratorTest.java283 Iterator<Map.Entry<String, String>> entryIterator = entries.iterator();
284 entryIterator.next();
285 entryIterator.remove();
DSimpleAbstractMultisetTest.java85 Iterator<Entry<E>> entryIterator() { in entryIterator() method in SimpleAbstractMultisetTest.NoRemoveMultiset
DConcurrentHashMultisetTest.java285 return multiset.entryIterator(); in testEntryIterator()
290 assertEquals(ImmutableSet.copyOf(elements), ImmutableSet.copyOf(multiset.entryIterator())); in testEntryIterator()

12