public static List<TriggerDto> transformToDto(List<Trigger> triggers){
  List<TriggerDto> result=new ArrayList<TriggerDto>();
  for (  Trigger trigger : triggers) {
    result.add(transformToDto(trigger));
  }
  return result;
}

public static List < TriggerDto > transformToDto ( List < Trigger > triggers ) { List < TriggerDto > result = new ArrayList < TriggerDto > ( ) ; for ( Trigger trigger : triggers ) { result . add ( transformToDto ( trigger ) ) ; } return result ; }
converts list of trigger entity objects to list of triggerdto objects .
