Map - Description


The generic class Map is a map of keys and values. Map is an unordered data type. The generic has a two type parameters, K - the key type and T - the data type of the map. The generic class Map exists in the namespace calculus (in assembly calculus.jar).

The declaration of the set class (in Java) is shown below.

public class Map<K,T> implements Iterable<KeyValue<K,T>>,
                                 Serializable

Searches, insertions and removals are O(log2n).

When for is applied to a set, the entries are presented in hash code order.