Beispiel #1
0
 private void GetTransformedList()
 {
     try
     {
         Logger.Info("GetAbsencesHistoryList Method");
         var transformedList = DatabaseHelper.GetList <Transform>();
         TransformedList.Clear();
         foreach (var item in transformedList)
         {
             TransformedList.Add(item);
         }
     }
     catch (Exception ex)
     {
         Logger.Error(ex, "Exception occured from getting projects list");
     }
 }
 /**
  * Returns a transformed list backed by the given list.
  * <p>
  * Each object is passed through the transformer as it is added to the
  * List. It is important not to use the original list after invoking this
  * method, as it is a backdoor for adding untransformed objects.
  *
  * @param list  the list to predicate, must not be null
  * @param transformer  the transformer for the list, must not be null
  * @return a transformed list backed by the given list
  * @throws IllegalArgumentException  if the List or Transformer is null
  */
 public static java.util.List <Object> transformedList(java.util.List <Object> list, Transformer transformer)
 {
     return(TransformedList.decorate(list, transformer));
 }