|
|
package com.yohoufo.common.utils;
|
|
|
|
|
|
import java.util.Map;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import java.util.*;
|
|
|
import java.util.Map.Entry;
|
|
|
import java.util.regex.Matcher;
|
|
|
import java.util.regex.Pattern;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
public final class UfoStringUtils extends org.apache.commons.lang3.StringUtils{
|
|
|
/**
|
...
|
...
|
@@ -145,5 +148,13 @@ public final class UfoStringUtils extends org.apache.commons.lang3.StringUtils{ |
|
|
return password.matches(reg);
|
|
|
}
|
|
|
|
|
|
public static List<Integer> string2IntegerList(String str) {
|
|
|
if (StringUtils.isNotBlank(str)) {
|
|
|
List<Integer> list = Arrays.stream(str.split(",")).map(e -> parseInt(e)).filter(Objects::nonNull).collect(Collectors.toList());
|
|
|
return list;
|
|
|
}
|
|
|
return Collections.emptyList();
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|