Commit 8e6704e0 authored by yanzg's avatar yanzg

身份证识别

parent 49e22e2c
......@@ -124,12 +124,12 @@ public class ArrayHelper {
* @param val 需要获取的对象,可以为List或者Array或者其他对象.
* @return
*/
public static List getCollection(Object val) {
public static Collection getCollection(Object val) {
boolean isArray = isArrayOrList(val);
List list;
Collection list;
// 判断处理
if (val instanceof List) {
list = (List) val;
if (val instanceof Collection) {
list = (Collection) val;
} else if (isArray) {
Object[] arr = (Object[]) val;
list = Arrays.asList(arr);
......
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