Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testConcatInfiniteStream (0.18 sec)

  1. guava-tests/test/com/google/common/collect/StreamsTest.java

        assertThatDoubleStream(stream(OptionalDouble.of(5.0))).containsExactly(5.0);
      }
    
      public void testConcatInfiniteStream() {
        assertThat(Streams.concat(Stream.of(1, 2, 3), Stream.generate(() -> 5)).limit(5))
            .containsExactly(1, 2, 3, 5, 5)
            .inOrder();
      }
    
      public void testConcatInfiniteStream_int() {
        assertThat(Streams.concat(IntStream.of(1, 2, 3), IntStream.generate(() -> 5)).limit(5))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 20K bytes
    - Viewed (0)
Back to top