Open wimvelzeboer opened 2 years ago
Often we retrieve data from records in maps, these domain methods will help with avoiding iterations.
Account accounts = Accounts.newInstance(records); Map<Id, String> accountNameById = accounts.getStringFieldByIdField(Account.AccountName, Account.Id);
instead of:
Account accounts = Accounts.newInstance(records); Map<Id, String> accountNameById = new Map<Id, String>(); for (Account record : (List<Account) accounts.getRecords()) { accountNameById.put(record.Id, record.Name); }
This change is
Often we retrieve data from records in maps, these domain methods will help with avoiding iterations.
instead of:
This change is![Reviewable](https://reviewable.io/review_button.svg)