com.cjy.fat.util.CollectionUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fat-common Show documentation
Show all versions of fat-common Show documentation
fat , the resolver of soa transaction
package com.cjy.fat.util;
import java.util.Set;
import com.cjy.fat.exception.FatTransactionException;
public class CollectionUtil {
private CollectionUtil(){
}
public static void checkDataSet(Set dataSet , String txKey){
if(null == dataSet || dataSet.size() == 0 ){
throw new FatTransactionException(txKey , "empty service list");
}
}
}