@Test public void testLength() { assertEquals(new Integer(-1), ObjectFieldActions.length(new Length(), null)); assertEquals(new Integer(0), ObjectFieldActions.length(new Length(), "")); assertEquals(new Integer(5), ObjectFieldActions.length(new Length(), " foo ")); assertEquals(new Integer(4), ObjectFieldActions.length(new Length(), true)); assertEquals(new Integer(3), ObjectFieldActions.length(new Length(), 169)); }
@AtlasActionProcessor public static Integer length(Length length, Object input) { if (input == null) { return -1; } return input.toString().length(); }
ObjectFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Integer length(Length length, Object input) { if (input == null) { return -1; } return input.toString().length(); } }
ObjectFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Integer length(Length length, Object input) { if (input == null) { return -1; } return input.toString().length(); }  }
ObjectFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Integer length(Length length, Object input) { if (input == null) { return -1; } return input.toString().length(); }  @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 length(Length length, Object input) { if (input == null) { return -1; } return input.toString().length(); }  @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);  }