Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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

share|improve this answer
    
yes by saying collections I meant list, set or map. I already gave an example with Map. –  Freakyuser Jan 9 '13 at 9:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.