public static int getArrayOrListLength(Object arrayOrList) {
		if (arrayOrList == null) {
			return 0;
		}

		Class<?> clazz = arrayOrList.getClass();
		boolean isArray = ClassHelper.isTypeArray(clazz);
		boolean isList = ClassHelper.isTypeList(clazz);
		
		
		if (!isArray && !isList) {
			throw new IllegalArgumentException("arrayOrList参数必须为数组或者List的实现类");
		}
		
		if(isArray) {
			return getLength(arrayOrList);
		} else {
			return ((List<?>) arrayOrList).size();
		}
	}