All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.opencodes.utils.StringUtils Maven / Gradle / Ivy

package cn.opencodes.utils;

import java.util.ArrayList;
import java.util.List;

/**
 * 字符串工具类
 * @author HJ
 */
public class StringUtils extends org.apache.commons.lang.StringUtils{
	
	/**
	 * 过滤掉集合里的空格
	 * @param list
	 * @return
	 */
	public static List trim(List list){
		List resultList=new ArrayList();
		for(String l:list){
			if(isNotEmpty(l)){
				resultList.add(l);
			}
		}
		return resultList;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy