MPS
 
Get MPS

Custom Containers

Last modified: 11 February 2024

Custom containers is a simple way to provide own implementation of standard container types, thus allowing for easy extensibility of the collections language.

Example: weakHashMap

Provided the following declaration is reachable from the model currently being edited...

... one can use the weak version of hashmap thusly:

map<Object, int> myMap= new weakHashMap<Object, int>;