/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | Iterables.java | 63 final Iterable<T> iterable) { in unmodifiableIterable() argument 64 checkNotNull(iterable); in unmodifiableIterable() 65 if (iterable instanceof UnmodifiableIterable || in unmodifiableIterable() 66 iterable instanceof ImmutableCollection) { in unmodifiableIterable() 67 return iterable; in unmodifiableIterable() 69 return new UnmodifiableIterable<T>(iterable); in unmodifiableIterable() 79 ImmutableCollection<E> iterable) { in unmodifiableIterable() argument 80 return checkNotNull(iterable); in unmodifiableIterable() 84 private final Iterable<T> iterable; field in Iterables.UnmodifiableIterable 86 private UnmodifiableIterable(Iterable<T> iterable) { in UnmodifiableIterable() argument [all …]
|
D | FluentIterable.java | 75 private final Iterable<E> iterable; field in FluentIterable 79 this.iterable = this; in FluentIterable() 82 FluentIterable(Iterable<E> iterable) { in FluentIterable() argument 83 this.iterable = checkNotNull(iterable); in FluentIterable() 90 public static <E> FluentIterable<E> from(final Iterable<E> iterable) { in from() argument 91 return (iterable instanceof FluentIterable) ? (FluentIterable<E>) iterable in from() 92 : new FluentIterable<E>(iterable) { in from() 95 return iterable.iterator(); in from() 109 public static <E> FluentIterable<E> from(FluentIterable<E> iterable) { 110 return checkNotNull(iterable); [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | Iterables.java | 65 final Iterable<T> iterable) { in unmodifiableIterable() argument 66 checkNotNull(iterable); in unmodifiableIterable() 67 if (iterable instanceof UnmodifiableIterable || in unmodifiableIterable() 68 iterable instanceof ImmutableCollection) { in unmodifiableIterable() 69 return iterable; in unmodifiableIterable() 71 return new UnmodifiableIterable<T>(iterable); in unmodifiableIterable() 81 ImmutableCollection<E> iterable) { in unmodifiableIterable() argument 82 return checkNotNull(iterable); in unmodifiableIterable() 86 private final Iterable<T> iterable; field in Iterables.UnmodifiableIterable 88 private UnmodifiableIterable(Iterable<T> iterable) { in UnmodifiableIterable() argument [all …]
|
D | FluentIterable.java | 76 private final Iterable<E> iterable; field in FluentIterable 80 this.iterable = this; in FluentIterable() 83 FluentIterable(Iterable<E> iterable) { in FluentIterable() argument 84 this.iterable = checkNotNull(iterable); in FluentIterable() 91 public static <E> FluentIterable<E> from(final Iterable<E> iterable) { in from() argument 92 return (iterable instanceof FluentIterable) ? (FluentIterable<E>) iterable in from() 93 : new FluentIterable<E>(iterable) { in from() 96 return iterable.iterator(); in from() 110 public static <E> FluentIterable<E> from(FluentIterable<E> iterable) { 111 return checkNotNull(iterable); [all …]
|
D | Ordering.java | 481 public <E extends T> E min(Iterable<E> iterable) { in min() argument 482 return min(iterable.iterator()); in min() 557 public <E extends T> E max(Iterable<E> iterable) { in max() argument 558 return max(iterable.iterator()); in max() 614 public <E extends T> List<E> leastOf(Iterable<E> iterable, int k) { in leastOf() argument 615 if (iterable instanceof Collection) { in leastOf() 616 Collection<E> collection = (Collection<E>) iterable; in leastOf() 631 return leastOf(iterable.iterator(), k); in leastOf() 772 public <E extends T> List<E> greatestOf(Iterable<E> iterable, int k) { in greatestOf() argument 775 return reverse().leastOf(iterable, k); in greatestOf() [all …]
|
/external/smali/util/src/main/java/org/jf/util/ |
D | ImmutableConverter.java | 49 public ImmutableList<ImmutableItem> toList(@Nullable final Iterable<? extends Item> iterable) { in toList() argument 50 if (iterable == null) { in toList() 55 if (iterable instanceof ImmutableList) { in toList() 56 for (Item element: iterable) { in toList() 67 return (ImmutableList<ImmutableItem>)iterable; in toList() 70 final Iterator<? extends Item> iter = iterable.iterator(); in toList() 80 public ImmutableSet<ImmutableItem> toSet(@Nullable final Iterable<? extends Item> iterable) { 81 if (iterable == null) { 86 if (iterable instanceof ImmutableSet) { 87 for (Item element: iterable) { [all …]
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ |
D | ForeachStmt.java | 51 private Expression iterable; field in ForeachStmt 60 …public ForeachStmt(final VariableDeclarationExpr variable, final Expression iterable, final Statem… in ForeachStmt() argument 61 this(null, variable, iterable, body); in ForeachStmt() 68 …public ForeachStmt(TokenRange tokenRange, VariableDeclarationExpr variable, Expression iterable, S… in ForeachStmt() argument 71 setIterable(iterable); in ForeachStmt() 76 public ForeachStmt(VariableDeclarationExpr variable, String iterable, BlockStmt body) { in ForeachStmt() argument 77 this(null, variable, new NameExpr(iterable), body); in ForeachStmt() 99 return iterable; in getIterable() 122 public ForeachStmt setIterable(final Expression iterable) { in setIterable() argument 123 assertNotNull(iterable); in setIterable() [all …]
|
/external/python/cpython3/Doc/library/ |
D | itertools.rst | 52 :func:`chain.from_iterable` iterable p0, p1, ... plast, q0, q1, ... … 56 :func:`groupby` iterable[, key] sub-iterators grouped by value of k… 89 .. function:: accumulate(iterable[, func]) 94 of two arguments. Elements of the input *iterable* may be any type 98 :class:`~fractions.Fraction`.) If the input iterable is empty, the 99 output iterable will also be empty. 103 def accumulate(iterable, func=operator.add): 107 it = iter(iterable) 122 can be modeled by supplying the initial value in the iterable and using only 157 Make an iterator that returns elements from the first iterable until it is [all …]
|
/external/guava/guava-testlib/test/com/google/common/collect/testing/ |
D | MinimalIterableTest.java | 36 Iterable<String> iterable = MinimalIterable.<String>of(); in testOf_empty() local 37 Iterator<String> iterator = iterable.iterator(); in testOf_empty() 45 iterable.iterator(); in testOf_empty() 52 Iterable<String> iterable = MinimalIterable.of("a"); in testOf_one() local 53 Iterator<String> iterator = iterable.iterator(); in testOf_one() 63 iterable.iterator(); in testOf_one() 70 Iterable<String> iterable in testFrom_empty() local 72 Iterator<String> iterator = iterable.iterator(); in testFrom_empty() 80 iterable.iterator(); in testFrom_empty() 87 Iterable<String> iterable in testFrom_one() local [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/stmt/ |
D | ForeachStmt.java | 39 private Expression iterable; field in ForeachStmt 47 final Expression iterable, final Statement body) { in ForeachStmt() argument 49 setIterable(iterable); in ForeachStmt() 54 final VariableDeclarationExpr var, final Expression iterable, in ForeachStmt() argument 58 setIterable(iterable); in ForeachStmt() 69 public ForeachStmt(VariableDeclarationExpr var, String iterable, BlockStmt body) { in ForeachStmt() argument 71 setIterable(new NameExpr(iterable)); in ForeachStmt() 91 return iterable; in getIterable() 105 public ForeachStmt setIterable(final Expression iterable) { in setIterable() argument 106 this.iterable = iterable; in setIterable() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | IterablesTest.java | 59 Iterable<String> iterable = Collections.emptySet(); in testSize0() local 60 assertEquals(0, Iterables.size(iterable)); in testSize0() 64 Iterable<String> iterable = Collections.singleton("a"); in testSize1Collection() local 65 assertEquals(1, Iterables.size(iterable)); in testSize1Collection() 69 Iterable<Integer> iterable = new Iterable<Integer>() { in testSize2NonCollection() local 75 assertEquals(2, Iterables.size(iterable)); in testSize2NonCollection() 89 private static Iterable<String> iterable(String... elements) { in iterable() method in IterablesTest 110 Iterable<String> set = iterable("a", null, "b"); 115 Iterable<String> set = iterable("a", "b"); 130 Iterable<String> set = iterable("a", null, "b"); [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | IterablesTest.java | 65 Iterable<String> iterable = Collections.emptySet(); in testSize0() local 66 assertEquals(0, Iterables.size(iterable)); in testSize0() 70 Iterable<String> iterable = Collections.singleton("a"); in testSize1Collection() local 71 assertEquals(1, Iterables.size(iterable)); in testSize1Collection() 75 Iterable<Integer> iterable = new Iterable<Integer>() { in testSize2NonCollection() local 81 assertEquals(2, Iterables.size(iterable)); in testSize2NonCollection() 95 private static Iterable<String> iterable(String... elements) { in iterable() method in IterablesTest 116 Iterable<String> set = iterable("a", null, "b"); 121 Iterable<String> set = iterable("a", "b"); 136 Iterable<String> set = iterable("a", null, "b"); [all …]
|
D | FluentIterableTest.java | 68 FluentIterable<Integer> iterable = FluentIterable.from(asList(1)); in testFrom_alreadyFluentIterable() local 69 assertSame(iterable, FluentIterable.from(iterable)); in testFrom_alreadyFluentIterable() 82 Iterable<Integer> iterable = new Iterable<Integer>() { in testSize2NonCollection() local 88 assertEquals(2, FluentIterable.from(iterable).size()); in testSize2NonCollection() 112 Iterable<String> iterable = iterable("a", null, "b"); in testContains_nullIterableYes() local 113 assertTrue(FluentIterable.from(iterable).contains(null)); in testContains_nullIterableYes() 117 Iterable<String> iterable = iterable("a", "b"); in testContains_nullIterableNo() local 118 assertFalse(FluentIterable.from(iterable).contains(null)); in testContains_nullIterableNo() 132 Iterable<String> set = iterable("a", null, "b"); in testContains_nonNullIterableYes() 137 Iterable<String> iterable = iterable("a", "b"); in testContains_nonNullIterableNo() local [all …]
|
/external/python/cpython2/Doc/library/ |
D | itertools.rst | 54 :func:`groupby` iterable[, keyfunc] sub-iterators grouped by value of keyfunc(v) 94 Make an iterator that returns elements from the first iterable until it is 95 exhausted, then proceeds to the next iterable, until all of the iterables are 106 .. classmethod:: chain.from_iterable(iterable) 109 single iterable argument that is evaluated lazily. Roughly equivalent to:: 120 .. function:: combinations(iterable, r) 122 Return *r* length subsequences of elements from the input *iterable*. 125 input *iterable* is sorted, the combination tuples will be produced 134 def combinations(iterable, r): 137 pool = tuple(iterable) [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/stmt/ |
D | ForeachStmt.java | 36 private Expression iterable; field in ForeachStmt 44 final Expression iterable, final Statement body) { in ForeachStmt() argument 46 setIterable(iterable); in ForeachStmt() 52 final VariableDeclarationExpr var, final Expression iterable, in ForeachStmt() argument 56 setIterable(iterable); in ForeachStmt() 75 return iterable; in getIterable() 87 public void setIterable(final Expression iterable) { in setIterable() argument 88 this.iterable = iterable; in setIterable() 89 setAsParentNodeOf(this.iterable); in setIterable()
|
/external/mockito/src/test/java/org/mockitousage/bugs/ |
D | InheritedGenericsPolimorphicCallTest.java | 36 MyIterable<String> iterable = Mockito.mock(MyIterable.class); field in InheritedGenericsPolimorphicCallTest 40 Mockito.when(iterable.iterator()).thenReturn(myIterator); in shouldStubbingWork() 41 assertNotNull(((Iterable<String>) iterable).iterator()); in shouldStubbingWork() 42 assertNotNull(iterable.iterator()); in shouldStubbingWork() 47 iterable.iterator(); in shouldVerificationWorks() 49 verify(iterable).iterator(); in shouldVerificationWorks() 50 verify((Iterable<String>) iterable).iterator(); in shouldVerificationWorks() 63 iterable = (MyIterable<String>) Proxy.newProxyInstance( in shouldWorkExactlyAsJavaProxyWould() 69 iterable.iterator(); in shouldWorkExactlyAsJavaProxyWould() 70 ((Iterable<String>) iterable).iterator(); in shouldWorkExactlyAsJavaProxyWould()
|
/external/python/cpython2/Lib/ |
D | heapq.py | 203 def nlargest(n, iterable): argument 210 it = iter(iterable) 221 def nsmallest(n, iterable): argument 228 it = iter(iterable) 399 def nsmallest(n, iterable, key=None): argument 406 it = iter(iterable) 416 size = len(iterable) 421 return sorted(iterable, key=key)[:n] 425 it = izip(iterable, count()) # decorate 430 in1, in2 = tee(iterable) [all …]
|
D | sets.py | 341 def _update(self, iterable): argument 346 if isinstance(iterable, BaseSet): 347 data.update(iterable._data) 352 if type(iterable) in (list, tuple, xrange): 355 it = iter(iterable) 368 for element in iterable: 385 def __init__(self, iterable=None): argument 389 if iterable is not None: 390 self._update(iterable) 410 def __init__(self, iterable=None): argument [all …]
|
D | collections.py | 209 def fromkeys(cls, iterable, value=None): argument 215 for key in iterable: 522 def fromkeys(cls, iterable, v=None): argument 555 iterable = args[0] if args else None 556 if iterable is not None: 557 if isinstance(iterable, Mapping): 560 for elem, count in iterable.iteritems(): 563 super(Counter, self).update(iterable) # fast path when counter is empty 566 for elem in iterable: 594 iterable = args[0] if args else None [all …]
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | Transformer.java | 25 …> Transformer<S, V> iterator(Transform<S, ? extends V> transform, Iterable<? extends S> iterable) { in iterator() argument 26 return new Transformer<S, V>(transform, iterable.iterator()); in iterator() 33 …public static <S, V> With<V> iterable(Transform<S, ? extends V> transform, Iterator<? extends S> i… in iterable() method in Transformer 37 …public static <S, V> With<V> iterable(Transform<S, ? extends V> transform, Iterable<? extends S> i… in iterable() method in Transformer 38 return With.in(new Transformer<S, V>(transform, iterable.iterator())); in iterable() 41 public static <S, V> With<V> iterable(Transform<S, ? extends V> transform, S... items) { in iterable() method in Transformer
|
/external/libchrome/third_party/jinja2/ |
D | asyncsupport.py | 181 async def auto_aiter(iterable): argument 182 if hasattr(iterable, '__aiter__'): 183 async for item in iterable: 186 for item in iterable: 233 async def make_async_loop_context(iterable, undefined, recurse=None, depth0=0): argument 243 length = len(iterable) 245 if not hasattr(iterable, '__aiter__'): 246 iterable = tuple(iterable) 247 length = len(iterable) 250 async_iterator = auto_aiter(iterable)
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_expected_output/ |
D | com_github_javaparser_ast_stmt_ForeachStmt.txt | 8 Line 46) setIterable(iterable) ==> void 15 Line 56) setIterable(iterable) ==> void 20 Line 75) iterable ==> com.github.javaparser.ast.expr.Expression 24 Line 88) this.iterable = iterable ==> com.github.javaparser.ast.expr.Expression 25 Line 89) setAsParentNodeOf(this.iterable) ==> void
|
/external/python/cpython3/Lib/multiprocessing/ |
D | pool.py | 263 def map(self, func, iterable, chunksize=None): argument 268 return self._map_async(func, iterable, mapstar, chunksize).get() 270 def starmap(self, func, iterable, chunksize=None): argument 276 return self._map_async(func, iterable, starmapstar, chunksize).get() 278 def starmap_async(self, func, iterable, chunksize=None, callback=None, argument 283 return self._map_async(func, iterable, starmapstar, chunksize, 286 def _guarded_task_generation(self, result_job, func, iterable): argument 292 for i, x in enumerate(iterable): 297 def imap(self, func, iterable, chunksize=1): argument 307 self._guarded_task_generation(result._job, func, iterable), [all …]
|
/external/tensorflow/tensorflow/python/util/ |
D | nest.py | 137 def _yield_value(iterable): argument 138 for _, v in _yield_sorted_items(iterable): 142 def _yield_sorted_items(iterable): argument 157 if isinstance(iterable, _collections.Mapping): 163 for key in _sorted(iterable): 164 yield key, iterable[key] 165 elif _is_attrs(iterable): 166 for item in _get_attrs_items(iterable): 168 elif _is_namedtuple(iterable): 169 for field in iterable._fields: [all …]
|
/external/python/cpython3/Lib/ |
D | heapq.py | 461 def nsmallest(n, iterable, key=None): argument 469 it = iter(iterable) 479 size = len(iterable) 484 return sorted(iterable, key=key)[:n] 488 it = iter(iterable) 507 it = iter(iterable) 524 def nlargest(n, iterable, key=None): argument 532 it = iter(iterable) 542 size = len(iterable) 547 return sorted(iterable, key=key, reverse=True)[:n] [all …]
|