test_class.file: app/src/test/java/apidez/com/doit/utils/TransformUtilsTest.java
test_class.identifier: TransformUtilsTest
test_case.body: @Test
      public void testFilter() throws Exception {
          Collection<Integer> data = Arrays.asList(1, 2, 3, 4, 5);
          Collection<Integer> evenData = TransformUtils.filter(data, item -> item % 2 == 0);
          assertEquals(2, evenData.size());
          assertTrue(evenData.contains(2));
          assertTrue(evenData.contains(4));
      }
test_case.class_method_signature: TransformUtilsTest.testFilter()
test_case.full_signature: @Test public void testFilter()
test_case.identifier: testFilter
test_case.invocations: asList filter assertEquals size assertTrue contains assertTrue contains
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFilter()
focal_class.file: app/src/main/java/apidez/com/doit/utils/TransformUtils.java
focal_class.identifier: TransformUtils
focal_class.class_method_signature: TransformUtils.filter(Collection<T> items, Predicate<T> predicate)
focal_class.full_signature: public static Collection<T> filter(Collection<T> items, Predicate<T> predicate)
focal_class.identifier: filter
focal_class.modifiers: public static
focal_class.parameters: (Collection<T> items, Predicate<T> predicate)
focal_class.return: Collection<T>
focal_class.signature: Collection<T> filter(Collection<T> items, Predicate<T> predicate)
focal_class.class_method_signature: TransformUtils.map(Collection<T> items, Map<T> mapper)
focal_class.full_signature: public static Collection<E> map(Collection<T> items, Map<T> mapper)
focal_class.identifier: map
focal_class.modifiers: public static
focal_class.parameters: (Collection<T> items, Map<T> mapper)
focal_class.return: Collection<E>
focal_class.signature: Collection<E> map(Collection<T> items, Map<T> mapper)
focal_method.body: public static <T> Collection<T> filter(Collection<T> items, Predicate<T> predicate) {
          Collection<T> result = new ArrayList<>();
          for (T item : items) {
              if (predicate.condition(item)) {
                  result.add(item);
              }
          }
          return result;
      }
focal_method.class_method_signature: TransformUtils.filter(Collection<T> items, Predicate<T> predicate)
focal_method.full_signature: public static Collection<T> filter(Collection<T> items, Predicate<T> predicate)
focal_method.identifier: filter
focal_method.invocations: condition add
focal_method.modifiers: public static
focal_method.parameters: (Collection<T> items, Predicate<T> predicate)
focal_method.return: Collection<T>
focal_method.signature: Collection<T> filter(Collection<T> items, Predicate<T> predicate)