test_class.file: kiji-mapreduce/src/test/java/org/kiji/mapreduce/util/TestLists.java
test_class.identifier: TestLists
test_case.body: @Test
    public void testMap() {
      List<Integer> inputs = new ArrayList<Integer>();
      inputs.add(Integer.valueOf(3));
      inputs.add(Integer.valueOf(42));
  
      List<Integer> expected = new ArrayList<Integer>();
      expected.add(Integer.valueOf(6));
      expected.add(Integer.valueOf(84));
  
      // Use a 'times 2' mapper.
      List<Integer> actuals = Lists.map(inputs, new Lists.Func<Integer, Integer>() {
        @Override
        public Integer eval(Integer in) {
          return Integer.valueOf(2 * in.intValue());
        }
      });
  
      assertTrue(expected.equals(actuals));
    }
test_case.class_method_signature: TestLists.testMap()
test_case.full_signature: @Test public void testMap()
test_case.identifier: testMap
test_case.invocations: add valueOf add valueOf add valueOf add valueOf map valueOf intValue assertTrue equals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMap()
focal_class.file: kiji-mapreduce/src/main/java/org/kiji/mapreduce/util/Lists.java
focal_class.identifier: Lists
focal_class.class_method_signature: Lists.Lists()
focal_class.full_signature: private  Lists()
focal_class.identifier: Lists
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  Lists()
focal_class.class_method_signature: Lists.foldLeft(Y initial, List<X> inputList, Aggregator<? super X, Y> op)
focal_class.full_signature: public static Y foldLeft(Y initial, List<X> inputList, Aggregator<? super X, Y> op)
focal_class.identifier: foldLeft
focal_class.modifiers: public static
focal_class.parameters: (Y initial, List<X> inputList, Aggregator<? super X, Y> op)
focal_class.return: Y
focal_class.signature: Y foldLeft(Y initial, List<X> inputList, Aggregator<? super X, Y> op)
focal_class.class_method_signature: Lists.foldRight(Y initial, List<X> inputList, Aggregator<? super X, Y> op)
focal_class.full_signature: public static Y foldRight(Y initial, List<X> inputList, Aggregator<? super X, Y> op)
focal_class.identifier: foldRight
focal_class.modifiers: public static
focal_class.parameters: (Y initial, List<X> inputList, Aggregator<? super X, Y> op)
focal_class.return: Y
focal_class.signature: Y foldRight(Y initial, List<X> inputList, Aggregator<? super X, Y> op)
focal_class.class_method_signature: Lists.map(List<X> inputs, Func<? super X, ? extends Y> mapper)
focal_class.full_signature: public static List<Y> map(List<X> inputs, Func<? super X, ? extends Y> mapper)
focal_class.identifier: map
focal_class.modifiers: public static
focal_class.parameters: (List<X> inputs, Func<? super X, ? extends Y> mapper)
focal_class.return: List<Y>
focal_class.signature: List<Y> map(List<X> inputs, Func<? super X, ? extends Y> mapper)
focal_class.class_method_signature: Lists.toArray(List<X> inputs, Class<X> klazz)
focal_class.full_signature: @SuppressWarnings("unchecked") public static X[] toArray(List<X> inputs, Class<X> klazz)
focal_class.identifier: toArray
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (List<X> inputs, Class<X> klazz)
focal_class.return: X[]
focal_class.signature: X[] toArray(List<X> inputs, Class<X> klazz)
focal_class.class_method_signature: Lists.distinct(List<X> inputs)
focal_class.full_signature: public static List<X> distinct(List<X> inputs)
focal_class.identifier: distinct
focal_class.modifiers: public static
focal_class.parameters: (List<X> inputs)
focal_class.return: List<X>
focal_class.signature: List<X> distinct(List<X> inputs)
focal_method.body: public static <X, Y> List<Y> map(List<X> inputs, Func<? super X, ? extends Y> mapper) {
      if (null == inputs) {
        return null;
      } else if (inputs.isEmpty()) {
        return Collections.emptyList();
      }
  
      List<Y> out = new ArrayList<Y>();
      for (X in : inputs) {
        out.add(mapper.eval(in));
      }
  
      return out;
    }
focal_method.class_method_signature: Lists.map(List<X> inputs, Func<? super X, ? extends Y> mapper)
focal_method.full_signature: public static List<Y> map(List<X> inputs, Func<? super X, ? extends Y> mapper)
focal_method.identifier: map
focal_method.invocations: isEmpty emptyList add eval
focal_method.modifiers: public static
focal_method.parameters: (List<X> inputs, Func<? super X, ? extends Y> mapper)
focal_method.return: List<Y>
focal_method.signature: List<Y> map(List<X> inputs, Func<? super X, ? extends Y> mapper)