- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for jetstream (0.17 sec)
-
guava-tests/test/com/google/common/collect/StreamsTest.java
testMapWithIndex_intStream_closeIsPropagated( IntStream.of(0).flatMap(unused -> IntStream.of(1, 2, 3))); } private void testMapWithIndex_intStream_closeIsPropagated(IntStream source) { AtomicInteger intStreamCloseCount = new AtomicInteger(); IntStream intStream = source.onClose(intStreamCloseCount::incrementAndGet); Stream<String> withIndex = Streams.mapWithIndex(intStream, (str, i) -> str + ":" + i);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 20K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
ImmutableDoubleArray.of(0, 1, 2, 3) .forEach(i -> assertThat(i).isEqualTo((double) count.getAndIncrement())); assertThat(count.get()).isEqualTo(4); } public void testStream() { ImmutableDoubleArray.of().stream().forEach(i -> fail()); ImmutableDoubleArray.of(0, 1, 3).subArray(1, 1).stream().forEach(i -> fail()); assertThat(ImmutableDoubleArray.of(0, 1, 3).stream().toArray())
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Jun 01 09:32:35 GMT 2023 - 21.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
AtomicLong count = new AtomicLong(0); ImmutableLongArray.of(0, 1, 2, 3) .forEach(i -> assertThat(i).isEqualTo(count.getAndIncrement())); assertThat(count.get()).isEqualTo(4); } public void testStream() { ImmutableLongArray.of().stream().forEach(i -> fail()); ImmutableLongArray.of(0, 1, 3).subArray(1, 1).stream().forEach(i -> fail());
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Jun 01 09:32:35 GMT 2023 - 20.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java
import java.util.Queue; import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.function.IntConsumer; import java.util.stream.IntStream; import junit.framework.TestCase; /** Test Java8 map.compute in concurrent cache context. */ public class LocalCacheMapComputeTest extends TestCase { final int count = 10000; final String delimiter = "-";
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 6.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/CollectSpliterators.java
import java.util.function.Function; import java.util.function.IntConsumer; import java.util.function.IntFunction; import java.util.function.LongConsumer; import java.util.function.Predicate; import java.util.stream.IntStream; import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.Nullable; /** Spliterator utilities for {@code common.collect} internals. */ @GwtCompatible @ElementTypesAreNonnullByDefault
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 15:21:23 GMT 2024 - 19.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java
assertThat(iia.asList()).containsExactly(0, 1, 3).inOrder(); } public void testCopyOf_stream() { assertThat(ImmutableIntArray.copyOf(IntStream.empty())) .isSameInstanceAs(ImmutableIntArray.of()); assertThat(ImmutableIntArray.copyOf(IntStream.of(0, 1, 3)).asList()) .containsExactly(0, 1, 3) .inOrder(); } public void testBuilder_presize_zero() {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Jun 01 09:32:35 GMT 2023 - 20.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/FluentIterable.java
* <li>{@code FluentIterable} contains several features not available on {@code Stream}, which are * noted in the method descriptions below. * <li>Streams include primitive-specialized variants such as {@code IntStream}, the use of which * is strongly recommended. * <li>Streams are standard Java, not requiring a third-party dependency. * </ul> * * <h3>Example</h3> *
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Tue Jan 30 00:14:39 GMT 2024 - 35.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/CollectSpliteratorsTest.java
import com.google.common.collect.testing.SpliteratorTester; import java.util.Arrays; import java.util.List; import java.util.Spliterator; import java.util.stream.DoubleStream; import java.util.stream.IntStream; import java.util.stream.LongStream; import junit.framework.TestCase; /** Tests for {@code CollectSpliterators}. */ @GwtCompatible @ElementTypesAreNonnullByDefault
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/FluentIterableTest.java
* overkill when nearly all Streams are produced using well-tested JDK calls. So, we cheat and * just test that the toArray() contents are as expected. */ public void testStream() { assertThat(FluentIterable.of().stream()).isEmpty(); assertThat(FluentIterable.of("a").stream()).containsExactly("a"); assertThat(FluentIterable.of(1, 2, 3).stream().filter(n -> n > 1)).containsExactly(2, 3);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 06 18:35:19 GMT 2024 - 31.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FluentIterable.java
* <li>{@code FluentIterable} contains several features not available on {@code Stream}, which are * noted in the method descriptions below. * <li>Streams include primitive-specialized variants such as {@code IntStream}, the use of which * is strongly recommended. * <li>Streams are standard Java, not requiring a third-party dependency (but do render your code * incompatible with Java 7 and earlier). * </ul> *
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jan 30 00:14:39 GMT 2024 - 35.7K bytes - Viewed (0)