MagicDraw UML and SysML Plugin eSchool
Motto: "Learn good ways to work with MagicDraw UML and its SysML Plugin !"
About the eSchool
UML2 in MagicDraw
MagicDraw UML tips
MagicDraw SysML Plugin
MagicDraw for Java
MagicDraw for XML
Advanced UML and SysML Training

Reversing Java collections

The class javavariables.HasCollections has some Java lists, sets, and maps:




public class HasCollections {

 public List list;

 public List<Thing> lThings; 

 public List<List<Thing>> lolThings;

 public List<String> lStrings;

 public Set<Thing> sThings = new HashSet<Thing>();

 public Map<String,Thing> map;
}



Some of the collections use Java5 generics and can only deal in objects compatible with generics parameter.

Let's see first what happens on reverse if we select the option to Resolve collection generics ...

Image: 
Search
MagicDraw UML for Java software engineering