com.nepxion.discovery.common.util.StringUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of discovery-common Show documentation
Show all versions of discovery-common Show documentation
Nepxion Discovery is an enhancement for Spring Cloud Discovery
package com.nepxion.discovery.common.util;
/**
* Title: Nepxion Discovery
* Description: Nepxion Discovery
* Copyright: Copyright (c) 2017-2050
* Company: Nepxion
* @author Haojun Ren
* @version 1.0
*/
import java.util.Arrays;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
public class StringUtil {
public static List splitToList(String value, String separate) {
if (StringUtils.isEmpty(value)) {
return null;
}
String[] valueArray = StringUtils.split(value, separate);
return Arrays.asList(valueArray);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy