otupy.types.base.map_of.MapOf

class MapOf(ktype, vtype)

Bases: object

OpenC2 MapOf

Implements OpenC2 MapOf(ktype, vtype):

An unordered set of keys to values with the same semantics. Each key has key type *ktype and is mapped to value type vtype.*

It extends Map with the same approach already used for ArrayOf. MapOf for specific types are created as anonymous classes by passing ktype and vtype as arguments.

Note: MapOf implementation currently does not support extensins!.

Methods