static List<String> union(List<String> xList,List<String> yList,boolean isSuffix){
  List<String> unionList=new ArrayList<String>(xList);
  unionList.addAll(yList);
  TranslatorUtils.removeDuplicateAffix(unionList,isSuffix);
  return unionList;
}

static List < String > union ( List < String > xList , List < String > yList , boolean isSuffix ) { List < String > unionList = new ArrayList < String > ( xList ) ; unionList . addAll ( yList ) ; TranslatorUtils . removeDuplicateAffix ( unionList , isSuffix ) ; return unionList ; }
this function calculates the union of two string lists ( treated as set ) and removes the duplicates in the results . for example , for xlist = { " ab " , " cd " } , ylist = { " cd " , " ef " } , { " ab " , " cd " , " ef " } is returned .
