- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 369 for Iterables (0.09 sec)
-
android/guava/src/com/google/common/collect/Iterables.java
@GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault public final class Iterables { private Iterables() {} /** Returns an unmodifiable view of {@code iterable}. */ public static <T extends @Nullable Object> Iterable<T> unmodifiableIterable( final Iterable<? extends T> iterable) { checkNotNull(iterable); if (iterable instanceof UnmodifiableIterable || iterable instanceof ImmutableCollection) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 24 19:38:27 UTC 2024 - 42.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
} private void testGetOnAbc(Iterable<String> iterable) { try { Iterables.get(iterable, -1); fail(); } catch (IndexOutOfBoundsException expected) { } assertEquals("a", Iterables.get(iterable, 0)); assertEquals("b", Iterables.get(iterable, 1)); assertEquals("c", Iterables.get(iterable, 2)); try { Iterables.get(iterable, 3); fail();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 19:12:33 UTC 2024 - 45K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/EqualsTester.java
import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertTrue; import com.google.common.annotations.GwtCompatible; import com.google.common.base.Equivalence; import com.google.common.collect.Iterables; import com.google.common.collect.Lists; import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.util.ArrayList; import java.util.List; import org.checkerframework.checker.nullness.qual.Nullable;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 31 19:11:50 UTC 2023 - 6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java
int charSplitter(int reps) { int total = 0; for (int i = 0; i < reps; i++) { total += Iterables.size(CHAR_SPLITTER.split(input)); } return total; } @Benchmark int stringSplitter(int reps) { int total = 0; for (int i = 0; i < reps; i++) { total += Iterables.size(STRING_SPLITTER.split(input)); } return total; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 1.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java
public final class MinimalIterable<E extends @Nullable Object> implements Iterable<E> { /** Returns an iterable whose iterator returns the given elements in order. */ public static <E extends @Nullable Object> MinimalIterable<E> of(E... elements) { // Make sure to get an unmodifiable iterator return new MinimalIterable<>(asList(elements).iterator()); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 3.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/TraverserTest.java
assertEqualCharNodes(result, "bfaecd"); } @Test public void forGraph_breadthFirst_infinite() { Iterable<Integer> result = Traverser.forGraph(fixedSuccessors(Iterables.cycle(1, 2, 3))).breadthFirst(0); assertThat(Iterables.limit(result, 4)).containsExactly(0, 1, 2, 3).inOrder(); } @Test public void forGraph_breadthFirst_diamond() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 47.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/TraverserTest.java
assertEqualCharNodes(result, "bfaecd"); } @Test public void forGraph_breadthFirst_infinite() { Iterable<Integer> result = Traverser.forGraph(fixedSuccessors(Iterables.cycle(1, 2, 3))).breadthFirst(0); assertThat(Iterables.limit(result, 4)).containsExactly(0, 1, 2, 3).inOrder(); } @Test public void forGraph_breadthFirst_diamond() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 47.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FluentIterable.java
Iterable<? extends T> a, Iterable<? extends T> b, Iterable<? extends T> c, Iterable<? extends T> d) { return concatNoDefensiveCopy(a, b, c, d); } /** * Returns a fluent iterable that combines several iterables. The returned iterable has an * iterator that traverses the elements of each iterable in {@code inputs}. The input iterators * are not polled until necessary. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 24 13:42:31 UTC 2024 - 35.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java
import static java.util.concurrent.TimeUnit.SECONDS; import com.google.common.base.Predicate; import com.google.common.base.Predicates; import com.google.common.collect.ImmutableList; import com.google.common.collect.Iterables; import com.google.common.collect.Lists; import java.util.Collection; import java.util.List; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 9.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java
import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.mock; import com.google.common.base.Function; import com.google.common.collect.ForwardingObject; import com.google.common.collect.Iterables; import com.google.common.testing.ForwardingWrapperTester; import java.lang.reflect.Method; import java.util.Arrays; /** * Tester for typical subclass of {@link ForwardingObject} by using Mockito. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Jan 05 19:41:03 UTC 2023 - 2.5K bytes - Viewed (0)