Map Class in Apex :
* Map Class Contains methods for the Map collection type.
* A Map is a collection of key-value pairs where each unique keymap to a single value.
* Map keys and values can be any data type primitive types, collections, objects, user-defined types, and built-in Apex types.
For Example, the following table represents a map of countries and currencies
Country(Key) |
‘United States |
‘Japan’ |
France’ |
‘England’ |
‘India’ |
Currency (Value) |
‘Dollar’ |
Yen’ |
‘Euro’ |
‘Pound’ |
‘Rupee’ |