Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for transformAndConcat (0.1 sec)

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

          return ImmutableList.of(value, value);
        }
      }
    
      public void testTransformAndConcat() {
        List<Integer> input = asList(1, 2, 3);
        Iterable<String> result =
            FluentIterable.from(input).transformAndConcat(new RepeatedStringValueOfFunction());
        assertEquals(asList("1", "1", "2", "2", "3", "3"), Lists.newArrayList(result));
      }
    
      private static final class RepeatedStringValueOfWildcardFunction
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/FluentIterable.java

       * streams, not iterables).
       *
       * @since 13.0 (required {@code Function<E, Iterable<T>>} until 14.0)
       */
      public <T extends @Nullable Object> FluentIterable<T> transformAndConcat(
          Function<? super E, ? extends Iterable<? extends T>> function) {
        return FluentIterable.concat(transform(function));
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
Back to top