Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for concDo (0.06 sec)

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

        assertEquals("d", itr2.next());
        assertEquals("c", itr2.next());
      }
    
      public void testConcatPartiallyAdvancedFirst() {
        Iterator<String> itr1 = Iterators.concat(singletonIterator("a"), Iterators.forArray("b", "c"));
        assertEquals("a", itr1.next());
        assertEquals("b", itr1.next());
        Iterator<String> itr2 = Iterators.concat(itr1, singletonIterator("d"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        String expected = "abcde";
    
        assertEquals(expected, CharSource.concat(ImmutableList.of(c1, c2, c3)).read());
        assertEquals(expected, CharSource.concat(c1, c2, c3).read());
        assertEquals(expected, CharSource.concat(ImmutableList.of(c1, c2, c3).iterator()).read());
        assertFalse(CharSource.concat(c1, c2, c3).isEmpty());
    
        CharSource emptyConcat = CharSource.concat(CharSource.empty(), CharSource.empty());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals("d", itr2.next());
        assertEquals("c", itr2.next());
      }
    
      public void testConcatPartiallyAdvancedFirst() {
        Iterator<String> itr1 = Iterators.concat(singletonIterator("a"), Iterators.forArray("b", "c"));
        assertEquals("a", itr1.next());
        assertEquals("b", itr1.next());
        Iterator<String> itr2 = Iterators.concat(itr1, singletonIterator("d"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Streams.java

       * stream may perform better.
       *
       * @see Stream#concat(Stream, Stream)
       */
      @SuppressWarnings("unchecked") // could probably be avoided with a forwarding Spliterator
      @SafeVarargs
      public static <T extends @Nullable Object> Stream<T> concat(Stream<? extends T>... streams) {
        // TODO(lowasser): consider an implementation that can support SUBSIZED
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/CharSource.java

       * load data through their streams). Prefer using the {@link #concat(Iterable)} overload if
       * possible.
       *
       * @param sources the sources to concatenate
       * @return a {@code CharSource} containing the concatenated data
       * @throws NullPointerException if any of {@code sources} is {@code null}
       * @since 15.0
       */
      public static CharSource concat(Iterator<? extends CharSource> sources) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ObjectArrays.java

       * @param second the second array of elements to concatenate
       * @param type the component type of the returned array
       */
      @GwtIncompatible // Array.newInstance(Class, int)
      public static <T extends @Nullable Object> T[] concat(
          T[] first, T[] second, Class<@NonNull T> type) {
        T[] result = newArray(type, first.length + second.length);
        arraycopy(first, 0, result, 0, first.length);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

      interface Y {}
    
      static class A implements X, Y {}
    
      static class B implements X, Y {}
    
      /**
       * This test passes if the {@code concat(…).filter(…).filter(…)} statement at the end compiles.
       * That statement compiles only if {@link FluentIterable#concat concat(aIterable, bIterable)}
       * returns a {@link FluentIterable} of elements of an anonymous type whose supertypes are the <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Streams.java

       * stream may perform better.
       *
       * @see Stream#concat(Stream, Stream)
       */
      @SuppressWarnings("unchecked") // could probably be avoided with a forwarding Spliterator
      @SafeVarargs
      public static <T extends @Nullable Object> Stream<T> concat(Stream<? extends T>... streams) {
        // TODO(lowasser): consider an implementation that can support SUBSIZED
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ObjectArrays.java

       * @param second the second array of elements to concatenate
       * @param type the component type of the returned array
       */
      @GwtIncompatible // Array.newInstance(Class, int)
      public static <T extends @Nullable Object> T[] concat(
          T[] first, T[] second, Class<@NonNull T> type) {
        T[] result = newArray(type, first.length + second.length);
        arraycopy(first, 0, result, 0, first.length);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Iterators.java

       * supports it.
       */
      public static <T extends @Nullable Object> Iterator<T> concat(
          Iterator<? extends T> a, Iterator<? extends T> b) {
        checkNotNull(a);
        checkNotNull(b);
        return concat(consumingForArray(a, b));
      }
    
      /**
       * Combines three iterators into a single iterator. The returned iterator iterates across the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
Back to top