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());
    }
  }
}

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 ( ) ) ; } } }
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 ) .
