@Test public void testCount() { assertEquals(new Integer(0), ObjectFieldActions.count(new Count(), new ArrayList<>())); Object[] array = new Object[] {false, "foo", 2}; assertEquals(new Integer(3), ObjectFieldActions.count(new Count(), Arrays.asList(array))); }
@AtlasActionProcessor public static Integer count(Count action, List<Object> inputs) { if (inputs == null) { return 0; } return inputs.size(); }
ObjectFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Integer count(Count action, List<Object> inputs) { if (inputs == null) { return 0; } return inputs.size(); } }
ObjectFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Integer count(Count action, List<Object> inputs) { if (inputs == null) { return 0; } return inputs.size(); }  }
ObjectFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Integer count(Count action, List<Object> inputs) { if (inputs == null) { return 0; } return inputs.size(); }  @AtlasActionProcessor static Integer count(Count action, List<Object> inputs); @AtlasActionProcessor static Boolean contains(Contains contains, List<Object> inputs); @AtlasActionProcessor static Boolean equals(Equals equals, Object input); @AtlasActionProcessor static Boolean isNull(IsNull action, Object input); @AtlasActionProcessor static Object itemAt(ItemAt itemAt, List<Object> inputs); @AtlasActionProcessor static Integer length(Length length, Object input); }
ObjectFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Integer count(Count action, List<Object> inputs) { if (inputs == null) { return 0; } return inputs.size(); }  @AtlasActionProcessor static Integer count(Count action, List<Object> inputs); @AtlasActionProcessor static Boolean contains(Contains contains, List<Object> inputs); @AtlasActionProcessor static Boolean equals(Equals equals, Object input); @AtlasActionProcessor static Boolean isNull(IsNull action, Object input); @AtlasActionProcessor static Object itemAt(ItemAt itemAt, List<Object> inputs); @AtlasActionProcessor static Integer length(Length length, Object input);  }