- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SingletonIterator (0.11 sec)
-
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
}.test(); } public void testConcatPartiallyAdvancedSecond() { Iterator<String> itr1 = Iterators.concat(singletonIterator("a"), Iterators.forArray("b", "c")); assertEquals("a", itr1.next()); assertEquals("b", itr1.next()); Iterator<String> itr2 = Iterators.concat(singletonIterator("d"), itr1); assertEquals("d", itr2.next()); assertEquals("c", itr2.next()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
}.test(); } public void testConcatPartiallyAdvancedSecond() { Iterator<String> itr1 = Iterators.concat(singletonIterator("a"), Iterators.forArray("b", "c")); assertEquals("a", itr1.next()); assertEquals("b", itr1.next()); Iterator<String> itr2 = Iterators.concat(singletonIterator("d"), itr1); assertEquals("d", itr2.next()); assertEquals("c", itr2.next()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
public static <T extends @Nullable Object> UnmodifiableIterator<T> singletonIterator( @ParametricNullness T value) { return new SingletonIterator<>(value); } private static final class SingletonIterator<T extends @Nullable Object> extends UnmodifiableIterator<T> { private final T value; private boolean done; SingletonIterator(T value) { this.value = value; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.3K bytes - Viewed (0)