Home
last modified time | relevance | path

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

12

/external/guava/guava/src/com/google/common/collect/
DAbstractSortedMultiset.java67 Iterator<Entry<E>> entryIterator = entryIterator(); in firstEntry() local
68 return entryIterator.hasNext() ? entryIterator.next() : null; in firstEntry()
73 Iterator<Entry<E>> entryIterator = descendingEntryIterator(); in lastEntry() local
74 return entryIterator.hasNext() ? entryIterator.next() : null; in lastEntry()
79 Iterator<Entry<E>> entryIterator = entryIterator(); in pollFirstEntry() local
80 if (entryIterator.hasNext()) { in pollFirstEntry()
81 Entry<E> result = entryIterator.next(); in pollFirstEntry()
83 entryIterator.remove(); in pollFirstEntry()
91 Iterator<Entry<E>> entryIterator = descendingEntryIterator(); in pollLastEntry() local
92 if (entryIterator.hasNext()) { in pollLastEntry()
[all …]
DForwardingSortedMultiset.java118 Iterator<Entry<E>> entryIterator = entrySet().iterator(); in standardFirstEntry() local
119 if (!entryIterator.hasNext()) { in standardFirstEntry()
122 Entry<E> entry = entryIterator.next(); in standardFirstEntry()
139 Iterator<Entry<E>> entryIterator = descendingMultiset() in standardLastEntry() local
142 if (!entryIterator.hasNext()) { in standardLastEntry()
145 Entry<E> entry = entryIterator.next(); in standardLastEntry()
161 Iterator<Entry<E>> entryIterator = entrySet().iterator(); in standardPollFirstEntry() local
162 if (!entryIterator.hasNext()) { in standardPollFirstEntry()
165 Entry<E> entry = entryIterator.next(); in standardPollFirstEntry()
167 entryIterator.remove(); in standardPollFirstEntry()
[all …]
DMultisets.java308 Iterator<Entry<E>> entryIterator() { in entryIterator() method
407 Iterator<Entry<E>> entryIterator() {
474 Iterator<Entry<E>> entryIterator() {
549 Iterator<Entry<E>> entryIterator() {
613 Iterator<Entry<E>> entryIterator() {
633 return Iterators.size(entryIterator());
689 Iterator<Entry<E>> entryIterator = multisetToModify.entrySet().iterator();
691 while (entryIterator.hasNext()) {
692 Entry<E> entry = entryIterator.next();
695 entryIterator.remove();
[all …]
DFilteredEntryMultimap.java135 Iterator<Entry<K, V>> entryIterator() { in entryIterator() method in FilteredEntryMultimap
150 Iterator<Entry<K, Collection<V>>> entryIterator = unfiltered.asMap().entrySet().iterator(); in removeEntriesIf() local
152 while (entryIterator.hasNext()) { in removeEntriesIf()
153 Entry<K, Collection<V>> entry = entryIterator.next(); in removeEntriesIf()
158 entryIterator.remove(); in removeEntriesIf()
291 Iterator<Entry<K, Collection<V>>> entryIterator
293 while (entryIterator.hasNext()) {
294 Entry<K, Collection<V>> entry = entryIterator.next();
300 entryIterator.remove();
371 return Keys.this.entryIterator();
DAbstractMapBasedMultiset.java86 Iterator<Entry<E>> entryIterator() { in entryIterator() method in AbstractMapBasedMultiset
160 final Iterator<Map.Entry<E, Count>> entryIterator;
166 this.entryIterator = backingMap.entrySet().iterator();
171 return occurrencesLeft > 0 || entryIterator.hasNext();
177 currentEntry = entryIterator.next();
193 entryIterator.remove();
DForwardingSortedMap.java165 Iterator<Entry<Object, V>> entryIterator = in standardRemove() local
167 if (entryIterator.hasNext()) { in standardRemove()
168 Entry<Object, V> ceilingEntry = entryIterator.next(); in standardRemove()
171 entryIterator.remove(); in standardRemove()
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()
DAbstractMultiset.java129 Iterators.clear(entryIterator()); in clear()
160 abstract Iterator<Entry<E>> entryIterator(); in entryIterator() method in AbstractMultiset
177 return entryIterator(); in iterator()
DDescendingMultiset.java100 abstract Iterator<Entry<E>> entryIterator(); in entryIterator() method in DescendingMultiset
116 return entryIterator(); in createEntrySet()
DImmutableMultiset.java239 final Iterator<Entry<E>> entryIterator = entrySet().iterator(); in iterator() local
246 return (remaining > 0) || entryIterator.hasNext(); in iterator()
252 Entry<E> entry = entryIterator.next(); in iterator()
DAbstractMultimap.java127 return entryIterator(); in iterator()
143 abstract Iterator<Entry<K, V>> entryIterator(); in entryIterator() method in AbstractMultimap
DAbstractMapBasedMultimap.java848 final Iterator<Map.Entry<K, Collection<V>>> entryIterator in iterator() local
855 return entryIterator.hasNext(); in iterator()
859 entry = entryIterator.next(); in iterator()
866 entryIterator.remove(); in iterator()
1052 Iterator<Map.Entry<K, V>> entryIterator() {
DStandardTable.java661 Iterator<Entry<C, V>> entryIterator = Iterators.emptyIterator();
665 if (entryIterator.hasNext()) {
666 Entry<C, V> entry = entryIterator.next();
672 entryIterator = mapIterator.next().entrySet().iterator();
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DAbstractSortedMultiset.java67 Iterator<Entry<E>> entryIterator = entryIterator(); in firstEntry() local
68 return entryIterator.hasNext() ? entryIterator.next() : null; in firstEntry()
73 Iterator<Entry<E>> entryIterator = descendingEntryIterator(); in lastEntry() local
74 return entryIterator.hasNext() ? entryIterator.next() : null; in lastEntry()
79 Iterator<Entry<E>> entryIterator = entryIterator(); in pollFirstEntry() local
80 if (entryIterator.hasNext()) { in pollFirstEntry()
81 Entry<E> result = entryIterator.next(); in pollFirstEntry()
83 entryIterator.remove(); in pollFirstEntry()
91 Iterator<Entry<E>> entryIterator = descendingEntryIterator(); in pollLastEntry() local
92 if (entryIterator.hasNext()) { in pollLastEntry()
[all …]
DAbstractMapBasedMultiset.java83 Iterator<Entry<E>> entryIterator() { in entryIterator() method in AbstractMapBasedMultiset
157 final Iterator<Map.Entry<E, Count>> entryIterator;
163 this.entryIterator = backingMap.entrySet().iterator();
168 return occurrencesLeft > 0 || entryIterator.hasNext();
174 currentEntry = entryIterator.next();
190 entryIterator.remove();
DDescendingMultiset.java100 abstract Iterator<Entry<E>> entryIterator(); in entryIterator() method in DescendingMultiset
116 return entryIterator(); in createEntrySet()
DImmutableMultiset.java238 final Iterator<Entry<E>> entryIterator = entrySet().iterator(); in iterator() local
245 return (remaining > 0) || entryIterator.hasNext(); in iterator()
251 Entry<E> entry = entryIterator.next(); in iterator()
DAbstractMapBasedMultimap.java847 final Iterator<Map.Entry<K, Collection<V>>> entryIterator in iterator() local
854 return entryIterator.hasNext(); in iterator()
858 entry = entryIterator.next(); in iterator()
865 entryIterator.remove(); in iterator()
1051 Iterator<Map.Entry<K, V>> entryIterator() {
DLinkedHashMultimap.java489 Iterator<Map.Entry<K, V>> entryIterator() { in entryIterator() method
521 return Maps.valueIterator(entryIterator());
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DLinkedHashMultimapTest.java98 Iterator<Map.Entry<String, Integer>> entryIterator = in assertOrderingReadOnly() local
100 assertEquals(Maps.immutableEntry("foo", 5), entryIterator.next()); in assertOrderingReadOnly()
101 assertEquals(Maps.immutableEntry("bar", 4), entryIterator.next()); in assertOrderingReadOnly()
102 assertEquals(Maps.immutableEntry("foo", 3), entryIterator.next()); in assertOrderingReadOnly()
103 assertEquals(Maps.immutableEntry("cow", 2), entryIterator.next()); in assertOrderingReadOnly()
104 assertEquals(Maps.immutableEntry("bar", 1), entryIterator.next()); in assertOrderingReadOnly()
DSimpleAbstractMultisetTest.java84 Iterator<Entry<E>> entryIterator() { in entryIterator() method in SimpleAbstractMultisetTest.NoRemoveMultiset
/external/guava/guava-tests/test/com/google/common/collect/
DLinkedHashMultimapTest.java170 Iterator<Map.Entry<String, Integer>> entryIterator = in assertOrderingReadOnly() local
172 assertEquals(Maps.immutableEntry("foo", 5), entryIterator.next()); in assertOrderingReadOnly()
173 assertEquals(Maps.immutableEntry("bar", 4), entryIterator.next()); in assertOrderingReadOnly()
174 assertEquals(Maps.immutableEntry("foo", 3), entryIterator.next()); in assertOrderingReadOnly()
175 assertEquals(Maps.immutableEntry("cow", 2), entryIterator.next()); in assertOrderingReadOnly()
176 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.java110 Iterator<Entry<E>> entryIterator() { in entryIterator() method in SimpleAbstractMultisetTest.NoRemoveMultiset

12