test_class.file: web-framework/src/test/java/org/unidal/web/jsp/function/ObjectFunctionTest.java
test_class.identifier: ObjectFunctionTest
test_case.body: @Test
     public void testSize() {
        Assert.assertEquals(null, ObjectFunction.size(null));
        Assert.assertEquals(4, ObjectFunction.size(Arrays.<Object> asList("abc", null, true, 3)));
  
        HashMap<Object, Object> map = new HashMap<Object, Object>();
  
        map.put("first", true);
        map.put(1, 2);
  
        Assert.assertEquals(2, ObjectFunction.size(map));
     }
test_case.class_method_signature: ObjectFunctionTest.testSize()
test_case.full_signature: @Test public void testSize()
test_case.identifier: testSize
test_case.invocations: assertEquals size assertEquals size asList put put assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSize()
focal_class.file: web-framework/src/main/java/org/unidal/web/jsp/function/ObjectFunction.java
focal_class.identifier: ObjectFunction
focal_class.class_method_signature: ObjectFunction.length(Object obj)
focal_class.full_signature: @FunctionMeta(description = "Length of String, or array", example = "${w:length(obj)}") public static Object length(Object obj)
focal_class.identifier: length
focal_class.modifiers: @FunctionMeta(description = "Length of String, or array", example = "${w:length(obj)}") public static
focal_class.parameters: (Object obj)
focal_class.return: Object
focal_class.signature: Object length(Object obj)
focal_class.class_method_signature: ObjectFunction.size(Object obj)
focal_class.full_signature: @FunctionMeta(description = "size of colection, or map", example = "${w:size(obj)}") public static Object size(Object obj)
focal_class.identifier: size
focal_class.modifiers: @FunctionMeta(description = "size of colection, or map", example = "${w:size(obj)}") public static
focal_class.parameters: (Object obj)
focal_class.return: Object
focal_class.signature: Object size(Object obj)
focal_class.class_method_signature: ObjectFunction.in(Object values, Object value)
focal_class.full_signature: @FunctionMeta(description = "Check if the value is equal or is one of value in the given values.", example = "${w:in(values, value)}") @SuppressWarnings("unchecked") public static boolean in(Object values, Object value)
focal_class.identifier: in
focal_class.modifiers: @FunctionMeta(description = "Check if the value is equal or is one of value in the given values.", example = "${w:in(values, value)}") @SuppressWarnings("unchecked") public static
focal_class.parameters: (Object values, Object value)
focal_class.return: boolean
focal_class.signature: boolean in(Object values, Object value)
focal_method.body: @FunctionMeta(description = "size of colection, or map", example = "${w:size(obj)}")
     public static Object size(Object obj) {
        if (obj == null) {
           return null;
        } else if (obj instanceof Collection) {
           return ((Collection<?>) obj).size();
        } else if (obj instanceof Map) {
           return ((Map<?, ?>) obj).size();
        } else {
           try {
              return Reflects.forMethod().invokeMethod(obj, "getSize", (Object[]) null);
           } catch (Exception e) {
              return null;
           }
        }
     }
focal_method.class_method_signature: ObjectFunction.size(Object obj)
focal_method.full_signature: @FunctionMeta(description = "size of colection, or map", example = "${w:size(obj)}") public static Object size(Object obj)
focal_method.identifier: size
focal_method.invocations: size size invokeMethod forMethod
focal_method.modifiers: @FunctionMeta(description = "size of colection, or map", example = "${w:size(obj)}") public static
focal_method.parameters: (Object obj)
focal_method.return: Object
focal_method.signature: Object size(Object obj)