I have below List where OwnerId field value may be the map key. I need to find out the Id from the List element for which the map key matches the OwnerId.
List
List<Account_List_vod__c> ExistActList = [select Id, Icon_Name_vod__c, Name, OwnerId from Account_List_vod__c where OwnerId in :MapOfTierObj.keySet()];
MapKey
for (Id key : MapOfTierObj.keySet())
{
.....Some code.......
.........Check if Key matches with an element in ExistActlist, then bring the Id value of corresponding element.
}