×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: sumesh tg
Added: Nov 14, 2016 12:09 PM
Views: 14
  1.         ObservableList<PaymentTermsBEAN> listPaymentTerms = masterAccountData.retrievePaymentTerms();
  2.         ObservableList<PaymentTermsBEAN> listAutoCompletion = FXCollections.observableArrayList();
  3.         listPaymentTerms.forEach((employerOriginalBEAN) -> {
  4.             PaymentTermsBEAN autoCompletionBEAN1 = (PaymentTermsBEAN) employerOriginalBEAN;
  5.             PaymentTermsBEAN autoCompletionBEAN = new PaymentTermsBEAN() {
  6.                 @Override
  7.                 public String toString() {
  8.                     return autoCompletionBEAN1.getShowItAs();
  9.                 }
  10.             };
  11.             BeanUtils.copyProperties(autoCompletionBEAN1, autoCompletionBEAN);
  12.             listAutoCompletion.add(autoCompletionBEAN);
  13.         });