I'm trying to implement the trigger framework outlined here:
The triggerhandler
methods take lists or maps of sObjects
as their inputs. In his example he casts list <sObject>
as list <Account>
by doing:
public void BeforeInsert(List<SObject> newItems)
{
for (Account acc : (List<Account>)newItems)
What is the equivalent for:
public void AfterInsert(Map<Id, SObject> newItems) {
for (opporutnity opp: (........).values()