- Sort Score
- Num 10 results
- Language All
Results 241 - 250 of 623 for iterables (0.2 seconds)
-
guava-tests/test/com/google/common/collect/ImmutableListTest.java
CountingIterable iterable = new CountingIterable(); List<String> list = ImmutableList.copyOf(iterable); assertEquals(asList("a", "b", "a"), list); } public void testCopyOf_plainIterable_iteratesOnce() { CountingIterable iterable = new CountingIterable(); ImmutableList<String> unused = ImmutableList.copyOf(iterable); assertEquals(1, iterable.count); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 23.8K bytes - Click Count (0) -
.teamcity/.mvn/wrapper/maven-wrapper.jar
package org.apache.maven.wrapper.cli; public abstract synchronized class AbstractCommandLineC implements CommandLineConverter { public void AbstractCommandLineC(); public Object convert(Iterable) throws CommandLineArgumentE; public Object convert(ParsedCommandLine) throws CommandLineArgumentE; public Object convert(Iterable, Object) throws CommandLineArgumentE; protected abstract Object newInstance(); } org/apache/maven/wrapper/cli/AbstractPropertiesCo.class package org.apache.maven.wrapper.cli; public...Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Feb 26 01:48:39 GMT 2020 - 49.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java
} public void testDoubler() { Iterable<Integer> doubled = new Iterable<Integer>() { @Override public Iterator<Integer> iterator() { return newDoubler(2, 32); } }; assertThat(doubled).containsExactly(2, 4, 8, 16, 32).inOrder(); } public void testSampleCode() { Iterable<Integer> actual = new Iterable<Integer>() { @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 4.7K bytes - Click Count (0) -
docs_src/stream_data/tutorial001_py310.py
from collections.abc import AsyncIterable, Iterable from fastapi import FastAPI from fastapi.responses import StreamingResponse app = FastAPI() message = """ Rick: (stumbles in drunkenly, and turns on the lights) Morty! You gotta come on. You got--... you gotta come with me. Morty: (rubs his eyes) What, Rick? What's going on? Rick: I got a surprise for you, Morty. Morty: It's the middle of the night. What are you talking about?
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 18:56:47 GMT 2026 - 2.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/MinMaxPriorityQueue.java
lastFromForgetMeNot = null; } } /** Returns true if an exact reference (==) was found and removed from the supplied iterable. */ private boolean foundAndRemovedExactReference(Iterable<E> elements, E target) { for (Iterator<E> it = elements.iterator(); it.hasNext(); ) { E element = it.next(); if (element == target) { it.remove();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 34K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java
} @Override public Iterable<V> order(List<V> insertionOrder) { K k = ((TestMultimapGenerator<K, V, M>) multimapGenerator.getInnerGenerator()) .sampleKeys() .e0(); List<Entry<K, V>> entries = new ArrayList<>(); for (V v : insertionOrder) { entries.add(mapEntry(k, v)); } Iterable<Entry<K, V>> ordered = multimapGenerator.order(entries);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 02 19:58:40 GMT 2026 - 26.7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java
*/ protected IteratorTester( int steps, Iterable<? extends IteratorFeature> features, Iterable<E> expectedElements, KnownOrder knownOrder) { super(steps, Collections.singleton(null), features, expectedElements, knownOrder, 0); } @Override protected final Iterable<Stimulus<E, Iterator<E>>> getStimulusValues() { return iteratorStimuli(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 4.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java
return Reflection.newProxy(List.class, new DelegatingInvocationHandlerWithEquals(delegate)); } @SuppressWarnings("unchecked") // proxy of Iterable<String> private static Iterable<String> newDelegatingIterableWithEquals(Iterable<String> delegate) { return Reflection.newProxy(Iterable.class, new DelegatingInvocationHandlerWithEquals(delegate)); } @SuppressWarnings("unchecked") // proxy of List<String>
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 5.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractRangeSet.java
} @Override public boolean enclosesAll(Iterable<Range<C>> ranges) { for (Range<C> range : ranges) { if (!encloses(range)) { return false; } } return true; } @Override public void addAll(RangeSet<C> other) { addAll(other.asRanges()); } @Override public void addAll(Iterable<Range<C>> ranges) { for (Range<C> range : ranges) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 2.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
assertEquals(1, iterable.count); } public void testCopyOf_hashMultiset() { Multiset<String> iterable = HashMultiset.create(asList("a", "b", "a")); Multiset<String> multiset = ImmutableMultiset.copyOf(iterable); assertEquals(HashMultiset.create(asList("a", "b", "a")), multiset); } public void testCopyOf_treeMultiset() { Multiset<String> iterable = TreeMultiset.create(asList("a", "b", "a"));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 24.9K bytes - Click Count (0)