- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for forEachRemaining (0.48 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java
extends GeneralSpliterator<E> { GeneralSpliteratorOfObject(Spliterator<E> spliterator) { super(spliterator); } @Override void forEachRemaining(Consumer<? super E> action) { spliterator.forEachRemaining(action); } @Override boolean tryAdvance(Consumer<? super E> action) { return spliterator.tryAdvance(action); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 12.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java
extends GeneralSpliterator<E> { GeneralSpliteratorOfObject(Spliterator<E> spliterator) { super(spliterator); } @Override void forEachRemaining(Consumer<? super E> action) { spliterator.forEachRemaining(action); } @Override boolean tryAdvance(Consumer<? super E> action) { return spliterator.tryAdvance(action); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 12.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java
for (Entry<String, Integer> entry : expectedEntries) { multimap.put(entry.getKey(), entry.getValue()); } List<String> actualKeys = new ArrayList<>(); multimap.keys().spliterator().forEachRemaining(actualKeys::add); assertThat(actualKeys) .containsExactlyElementsIn(transform(expectedEntries, Entry::getKey)) .inOrder(); } public void testEntriesSpliterator() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/CollectSpliteratorsTest.java
multiset.add("a", 3); multiset.add("b", 1); multiset.add("c", 2); List<String> actualValues = Lists.newArrayList(); multiset.spliterator().forEachRemaining(actualValues::add); assertThat(multiset).containsExactly("a", "a", "a", "b", "c", "c").inOrder(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 4.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Streams.java
// spliterator is known to be nonempty now spliterator.forEachRemaining(state::set); return java.util.Optional.of(state.get()); } Spliterator<T> prefix = spliterator.trySplit(); if (prefix == null || prefix.getExactSizeIfKnown() == 0) { // we can't split this any further spliterator.forEachRemaining(state::set); if (state.set) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 37.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Streams.java
// spliterator is known to be nonempty now spliterator.forEachRemaining(state::set); return java.util.Optional.of(state.get()); } Spliterator<T> prefix = spliterator.trySplit(); if (prefix == null || prefix.getExactSizeIfKnown() == 0) { // we can't split this any further spliterator.forEachRemaining(state::set); if (state.set) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 36.8K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/ImmutableLongArray.java
long size = spliterator.getExactSizeIfKnown(); if (size > 0) { // known *and* nonempty ensureRoomFor(Ints.saturatedCast(size)); } spliterator.forEachRemaining((LongConsumer) this::add); return this; } /** * Appends {@code values}, in order, to the end of the values the built {@link * ImmutableLongArray} will contain. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 22.3K bytes - Viewed (0) -
guava/src/com/google/common/primitives/ImmutableIntArray.java
long size = spliterator.getExactSizeIfKnown(); if (size > 0) { // known *and* nonempty ensureRoomFor(Ints.saturatedCast(size)); } spliterator.forEachRemaining((IntConsumer) this::add); return this; } /** * Appends {@code values}, in order, to the end of the values the built {@link * ImmutableIntArray} will contain. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 21.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
List<E> targetElements = new ArrayList<>(); Iterator<E> iterator = newTargetIterator(); for (int j = 0; j < i; j++) { targetElements.add(iterator.next()); } iterator.forEachRemaining(targetElements::add); if (knownOrder == KnownOrder.KNOWN_ORDER) { assertEquals(expectedElements, targetElements); } else { assertEqualIgnoringOrder(expectedElements, targetElements);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 21.2K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/ImmutableIntArray.java
long size = spliterator.getExactSizeIfKnown(); if (size > 0) { // known *and* nonempty ensureRoomFor(Ints.saturatedCast(size)); } spliterator.forEachRemaining((IntConsumer) this::add); return this; } /** * Appends {@code values}, in order, to the end of the values the built {@link * ImmutableIntArray} will contain. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 22.2K bytes - Viewed (0)