question: public SdkUpdateEventProcessor ( SdkUpdateEvent < T > sdkUpdateEvent ) { List < SdkUpdate < T > > sdkUpdates = sdkUpdateEvent . getUpdates ( ) ; for ( SdkUpdate < T > sdkUpdate : sdkUpdates ) { if ( sdkUpdate . getType ( ) == SdkUpdate . Type . NEW_DEFAULT ) { newDefaultSdk = sdkUpdate . getSdk ( ) ; } else if ( sdkUpdate . getType ( ) == SdkUpdate . Type . ADDED ) { addedSdkList . add ( sdkUpdate . getSdk ( ) ) ; } } }
target:  Iterates through all of the sdkUpdateEvents and checks to see if a new default SDK was chosen. If so, this value is recorded. Also looks for cases where new SDKs were added (which could also correspond to adding a different SDK with the same name after removing it).