public void clearPaymentMethodsById(List<String> paymentMethodIdsToRemove){
  if (UtilValidate.isEmpty(paymentMethodIdsToRemove))   return;
  for (Iterator<CartPaymentInfo> iter=paymentInfo.iterator(); iter.hasNext(); ) {
    CartPaymentInfo info=iter.next();
    if (paymentMethodIdsToRemove.contains(info.paymentMethodId)) {
      iter.remove();
    }
  }
}

public void clearPaymentMethodsById ( List < String > paymentMethodIdsToRemove ) { if ( UtilValidate . isEmpty ( paymentMethodIdsToRemove ) ) return ; for ( Iterator < CartPaymentInfo > iter = paymentInfo . iterator ( ) ; iter . hasNext ( ) ; ) { CartPaymentInfo info = iter . next ( ) ; if ( paymentMethodIdsToRemove . contains ( info . paymentMethodId ) ) { iter . remove ( ) ; } } }
remove all the paymentmethods based on the paymentmethodids
