1

I am drawing a class diagram currently, in which there are variables of 'Collections' type and also methods that return 'Collections'.

I am unable to find any Collections type from the list given in it. I am currently using Visio 2007.

For example: Map model is my variable, myMethod(): Map is my method;

Can anyone please help me find the collections type?

1 Answer 1

2

I am assuming by collection, you are meaning generics like List<>

Double click the class to open properties.

Click on operations to see the methods

Select the return type which closely matches what you want. EG, I've selected string as I want my parameter to be List. Now click properties.

You can set prefix and suffix which will put the words either side of the predefined type.

EG, in prefix I would type List< and in suffix I would type >

enter image description here

1
  • yes by saying collections I meant list, set or map. I already gave an example with Map.
    – Freakyuser
    Jan 9, 2013 at 9:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .