Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testTransformWith (0.08 seconds)

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

      private static final class IntegerValueOfFunction implements Function<String, Integer> {
        @Override
        public Integer apply(String from) {
          return Integer.valueOf(from);
        }
      }
    
      public void testTransformWith() {
        List<String> input = asList("1", "2", "3");
        Iterable<Integer> iterable = FluentIterable.from(input).transform(new IntegerValueOfFunction());
    
        assertEquals(asList(1, 2, 3), Lists.newArrayList(iterable));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 30.5K bytes
    - Click Count (0)
Back to Top