+ Start a Discussion
anitha20anitha20 

Apex code Map usage

can any one tel me about Map in Apex code

ashiiashii

hi,

 

Map is a collection with key and value combination.

 

Syntax:

 

Map<key,Value>

 

Key can be Id, String, Integer etc, but its should be unique.

Value can also be Id, string, Integer, sObject etc...

some examples are shown below:

Map<Id, String>

Map<String,Id>

Map<Id,List<String>>

Map<Integert,Set<Id>>

 

Find below the Map method link

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_map.htm

 

Thanks

ashii

 

anitha20anitha20

Thanks alot