Home
last modified time | relevance | path

Searched refs:Iterators (Results 1 – 25 of 141) sorted by relevance

123456

/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DIteratorsTest.java19 import static com.google.common.collect.Iterators.advance;
20 import static com.google.common.collect.Iterators.get;
21 import static com.google.common.collect.Iterators.getLast;
53 Iterator<String> iterator = Iterators.emptyIterator(); in testEmptyIterator()
68 ListIterator<String> iterator = Iterators.emptyListIterator(); in testEmptyListIterator()
101 Iterator<String> iterator = Iterators.emptyModifiableIterator(); in testEmptyModifiableIterator()
116 Iterator<String> iterator = Iterators.emptyIterator(); in testSize0()
117 assertEquals(0, Iterators.size(iterator)); in testSize0()
122 assertEquals(1, Iterators.size(iterator)); in testSize1()
129 assertEquals(3, Iterators.size(iterator)); in testSize_partiallyConsumed()
[all …]
DPeekingIteratorTest.java19 import static com.google.common.collect.Iterators.peekingIterator;
67 return Iterators.peekingIterator(iterator); in newTargetIterator()
84 return Iterators.peekingIterator(iterator); in actsLikeIteratorHelper()
102 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testPeekOnEmptyList()
114 Iterators.peekingIterator(iterator); in testPeekDoesntChangeIteration()
154 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testCantRemoveAfterPeek()
DAbstractImmutableSetTest.java171 Iterator<String> iterator = Iterators.emptyIterator(); in testCopyOf_iterator_empty()
178 Iterator<String> iterator = Iterators.singletonIterator("a"); in testCopyOf_iterator_oneElement()
184 Iterator<String> iterator = Iterators.forArray("a", "a", "a"); in testCopyOf_iterator_oneElementRepeated()
190 Iterator<String> iterator = Iterators.forArray("a", "b", "a"); in testCopyOf_iterator_general()
198 Iterator<String> c = Iterators.forArray("a", null, "b"); in testCopyOf_iteratorContainingNull()
211 return Iterators.forArray("a", "b", "a"); in iterator()
/external/guava/guava-tests/test/com/google/common/collect/
DIteratorsTest.java19 import static com.google.common.collect.Iterators.advance;
20 import static com.google.common.collect.Iterators.get;
21 import static com.google.common.collect.Iterators.getLast;
78 Iterator<String> iterator = Iterators.emptyIterator(); in testEmptyIterator()
93 ListIterator<String> iterator = Iterators.emptyListIterator(); in testEmptyListIterator()
126 Iterator<String> iterator = Iterators.emptyModifiableIterator(); in testEmptyModifiableIterator()
141 Iterator<String> iterator = Iterators.emptyIterator(); in testSize0()
142 assertEquals(0, Iterators.size(iterator)); in testSize0()
147 assertEquals(1, Iterators.size(iterator)); in testSize1()
154 assertEquals(3, Iterators.size(iterator)); in testSize_partiallyConsumed()
[all …]
DPeekingIteratorTest.java19 import static com.google.common.collect.Iterators.peekingIterator;
68 return Iterators.peekingIterator(iterator); in newTargetIterator()
85 return Iterators.peekingIterator(iterator); in actsLikeIteratorHelper()
112 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testPeekOnEmptyList()
124 Iterators.peekingIterator(iterator); in testPeekDoesntChangeIteration()
164 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testCantRemoveAfterPeek()
DAbstractImmutableSetTest.java175 Iterator<String> iterator = Iterators.emptyIterator(); in testCopyOf_iterator_empty()
182 Iterator<String> iterator = Iterators.singletonIterator("a"); in testCopyOf_iterator_oneElement()
188 Iterator<String> iterator = Iterators.forArray("a", "a", "a"); in testCopyOf_iterator_oneElementRepeated()
194 Iterator<String> iterator = Iterators.forArray("a", "b", "a"); in testCopyOf_iterator_general()
202 Iterator<String> c = Iterators.forArray("a", null, "b"); in testCopyOf_iteratorContainingNull()
215 return Iterators.forArray("a", "b", "a"); in iterator()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/reflection/
DReflectionClassDef.java38 import com.google.common.collect.Iterators;
84 …return ImmutableList.copyOf(Iterators.transform(Iterators.forArray(cls.getInterfaces()), new Funct… in getInterfaces()
107 Iterator<java.lang.reflect.Field> staticFields = Iterators.filter(
108 Iterators.forArray(cls.getDeclaredFields()),
115 return Iterators.transform(staticFields,
129 Iterator<java.lang.reflect.Field> staticFields = Iterators.filter(
130 Iterators.forArray(cls.getDeclaredFields()),
137 return Iterators.transform(staticFields,
151 return Iterators.transform(Iterators.forArray(cls.getDeclaredFields()),
170 Iterators.transform(Iterators.forArray(cls.getDeclaredConstructors()),
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DIterables.java92 return Iterators.unmodifiableIterator(iterable.iterator()); in iterator()
108 : Iterators.size(iterable.iterator()); in size()
120 return Iterators.contains(iterable.iterator(), element); in contains()
138 : Iterators.removeAll(removeFrom.iterator(), elementsToRemove); in removeAll()
156 : Iterators.retainAll(removeFrom.iterator(), elementsToRetain); in retainAll()
178 return Iterators.removeIf(removeFrom.iterator(), predicate); in removeIf()
264 return Iterators.elementsEqual(iterable1.iterator(), iterable2.iterator()); in elementsEqual()
276 return Iterators.toString(iterable.iterator()); in toString()
287 return Iterators.getOnlyElement(iterable.iterator()); in getOnlyElement()
300 return Iterators.getOnlyElement(iterable.iterator(), defaultValue); in getOnlyElement()
[all …]
DSingletonImmutableSet.java21 import com.google.common.collect.Iterators;
49 return Iterators.singletonIterator(element); in iterator()
DSets.java125 Iterators.addAll(enumSet, itr); in immutableEnumSet()
234 Iterators.addAll(set, elements); in newHashSet()
558 return Iterators.unmodifiableIterator( in union()
559 Iterators.concat(set1.iterator(), set2minus1.iterator())); in union()
610 return Iterators.filter(set1.iterator(), inSet2);
613 return Iterators.size(iterator());
647 return Iterators.filter(set1.iterator(), notInSet2);
650 return Iterators.size(iterator());
1236 return Iterators.removeAll(set.iterator(), collection);
/external/guava/guava/src/com/google/common/collect/
DIterables.java94 return Iterators.unmodifiableIterator(iterable.iterator()); in iterator()
110 : Iterators.size(iterable.iterator()); in size()
122 return Iterators.contains(iterable.iterator(), element); in contains()
140 : Iterators.removeAll(removeFrom.iterator(), elementsToRemove); in removeAll()
158 : Iterators.retainAll(removeFrom.iterator(), elementsToRetain); in retainAll()
180 return Iterators.removeIf(removeFrom.iterator(), predicate); in removeIf()
266 return Iterators.elementsEqual(iterable1.iterator(), iterable2.iterator()); in elementsEqual()
278 return Iterators.toString(iterable.iterator()); in toString()
289 return Iterators.getOnlyElement(iterable.iterator()); in getOnlyElement()
302 return Iterators.getOnlyElement(iterable.iterator(), defaultValue); in getOnlyElement()
[all …]
DForwardingNavigableSet.java67 return Iterators.getNext(headSet(e, false).descendingIterator(), null); in standardLower()
81 return Iterators.getNext(headSet(e, true).descendingIterator(), null); in standardFloor()
95 return Iterators.getNext(tailSet(e, true).iterator(), null); in standardCeiling()
109 return Iterators.getNext(tailSet(e, false).iterator(), null); in standardHigher()
123 return Iterators.pollNext(iterator()); in standardPollFirst()
137 return Iterators.pollNext(descendingIterator()); in standardPollLast()
DForwardingCollection.java130 return Iterators.contains(iterator(), object); in standardContains()
152 return Iterators.addAll(this, collection.iterator()); in standardAddAll()
183 return Iterators.removeAll(iterator(), collection); in standardRemoveAll()
195 return Iterators.retainAll(iterator(), collection); in standardRetainAll()
207 Iterators.clear(iterator()); in standardClear()
DAbstractNavigableMap.java44 return Iterators.getNext(entryIterator(), null); in firstEntry()
50 return Iterators.getNext(descendingEntryIterator(), null); in lastEntry()
56 return Iterators.pollNext(entryIterator()); in pollFirstEntry()
62 return Iterators.pollNext(descendingEntryIterator()); in pollLastEntry()
DSets.java129 Iterators.addAll(enumSet, itr); in immutableEnumSet()
238 Iterators.addAll(set, elements); in newHashSet()
594 return Iterators.unmodifiableIterator( in union()
595 Iterators.concat(set1.iterator(), set2minus1.iterator())); in union()
646 return Iterators.filter(set1.iterator(), inSet2);
649 return Iterators.size(iterator());
683 return Iterators.filter(set1.iterator(), notInSet2);
686 return Iterators.size(iterator());
936 return Iterators.getNext(headSet(e, false).descendingIterator(), null);
942 return Iterators.getNext(headSet(e, true).descendingIterator(), null);
[all …]
DTreeRangeSet.java364 final PeekingIterator<Range<C>> backingItr = Iterators.peekingIterator(candidates.iterator());
388 return Iterators.size(entryIterator());
473 final PeekingIterator<Range<C>> positiveItr = Iterators.peekingIterator(
482 return Iterators.emptyIterator();
523 Iterators.peekingIterator(positiveRangesByUpperBound.headMap(startingPoint, inclusive)
532 return Iterators.emptyIterator();
566 return Iterators.size(entryIterator());
713 return Iterators.emptyIterator();
717 return Iterators.emptyIterator();
749 return Iterators.emptyIterator();
[all …]
DEmptyImmutableSortedSet.java59 return Iterators.emptyIterator(); in iterator()
64 return Iterators.emptyIterator(); in descendingIterator()
DEmptyContiguousSet.java80 return Iterators.emptyIterator(); in iterator()
85 return Iterators.emptyIterator(); in descendingIterator()
/external/desugar/java/com/google/devtools/build/android/desugar/io/
DZipInputFileProvider.java17 import com.google.common.collect.Iterators;
61 return Iterators.transform( in iterator()
62 Iterators.forEnumeration(zipFile.entries()), Functions.toStringFunction()); in iterator()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/
DClassDefRewriter.java34 import com.google.common.collect.Iterators;
104 … return Iterators.concat(getStaticFields().iterator(), getInstanceFields().iterator()); in getFields()
124 … return Iterators.concat(getDirectMethods().iterator(), getVirtualMethods().iterator()); in getMethods()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/
DIterators.java31 public class Iterators { class
58 private Iterators() { in Iterators() method in Iterators
/external/smali/util/src/main/java/org/jf/util/
DArraySortedSet.java34 import com.google.common.collect.Iterators;
72 return Iterators.forArray((T[])arr); in iterator()
187 return Iterators.elementsEqual(iterator(), other.iterator()); in equals()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DServiceProvidersTestUtil.java21 import com.google.common.collect.Iterators;
61 Object[] results = Iterators.toArray( in testHardcodedClasses()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/
DBuilderAnnotationSetPool.java36 import com.google.common.collect.Iterators;
69 ImmutableSet.copyOf(Iterators.transform(annotations.iterator(), in internAnnotationSet()
/external/desugar/test/java/com/google/devtools/build/android/desugar/
DBug62456849TestDataGenerator.java18 import com.google.common.collect.Iterators;
57 Iterators.forEnumeration(inputZip.entries()); in main()

123456