Charta Software
Back to the base
E-mail:
Wachtwoord:
Aangemaakt door op 2009-06-18 10:04:28
Laatst gewijzigd op 2009-06-18 10:24:30

Map

A Map is a collection of key/value pairs. Values can be added and retrieved based on an accompanying key.

Charta supports the collection Map which can be used to store a mapping between key objects and value object. Keys can occur only once in a map and have one associated value.

A Map can be used to efficiently store an index when the key and value both are objects. If there is no apparent key and just an efficient means of locating objects in a collection is needed, it is better to use a Set instead.

Supported operations

The following operations are supported by a Map:

OperationDescription
[]Map members can be set and retrieved using the [] operator. The value between the brackets should be the key object.