Custom Containers

Skip to end of metadata
Go to start of metadata

Custom Containers

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:

Custom Containers Declaration

A root node of concept CustomContainers may have one or more declarations.

declaration part allowed contents
containerName any valid identifier
container_type one of the existing container types of the collections language
runtime type Java classifier which represent implementation of the container
factory (optional) container creation expression;
the classifier's default constructor used if undefined
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.