Hello Trailblazers, In this video we're going to learn about some advanced methods of a map in apex. Do you know that if you get all the keys from a map, it'll be a set and if you get all the values from a map, it'll be a list? Let's see that in action.
Chapters:
0:00 Introduction
0:07 Get all keys from a map - KeySet() method
1:37 Get all values from a map - values() method
3:24 Remove all key-value pairs - clear() method
4:25 Check if map is empty - empty() method
5:41 Total number of pairs in a map - size() method
6:59 Wrapping Up
Code: https://gist.github.com/rahulmalhotra...
Subscribe to SFDC Stop:- https://www.youtube.com/c/sfdcstop?su...
LWC Todo App Project Tutorial Series - • Simplifying the Callouts in Salesforce | H...
Interested in learning about Scratch Orgs and SFDX ? Have a look at the playlist:- • Getting started with Scratch Orgs and CI/C...
Interested in learning about Integration ? Have a look at this playlist:- • Salesforce Integration Tutorial Series