com.araguacaima.commons.utils.CollectionUtils Maven / Gradle / Ivy
package com.araguacaima.commons.utils;
import org.apache.commons.beanutils.PropertyUtilsBean;
import org.apache.commons.collections4.Transformer;
import org.apache.commons.lang3.StringUtils;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
* Created by Alejandro on 03/12/2014.
*/
public class CollectionUtils {
private static final PropertyUtilsBean propertyUtilsBean = new PropertyUtilsBean();
private static final CollectionUtils INSTANCE = new CollectionUtils();
;
private CollectionUtils() {
if (INSTANCE != null) {
throw new IllegalStateException("Already instantiated");
}
}
public static CollectionUtils getInstance() {
return INSTANCE;
}
public static List