Commit d8109d6e authored by yanzg's avatar yanzg

身份证识别

parent 1dc8c0da
package com.yanzuoguang.util.helper; package com.yanzuoguang.util.helper;
import java.util.ArrayList; import java.util.*;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
/** /**
* 字符串帮主类 * 字符串帮主类
...@@ -76,8 +73,7 @@ public class ArrayHelper { ...@@ -76,8 +73,7 @@ public class ArrayHelper {
* @return * @return
*/ */
public static boolean isArrayOrList(Object val) { public static boolean isArrayOrList(Object val) {
boolean isArray = val != null && (val instanceof List || val.getClass().isArray()); return val != null && (val instanceof Collection || val.getClass().isArray());
return isArray;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment