Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7516343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:05:58+00:00 2026-05-30T01:05:58+00:00

Suppose I have an operation that receives a parameter java Set and returns Set.

  • 0

Suppose I have an operation that receives a parameter java Set and returns Set. How can I model that in ArgoUML? It seems I have to create a class “Set” with a Template Parameter, but I’m unable to find out how it works.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:05:59+00:00Added an answer on May 30, 2026 at 1:05 am

    A good way of seeing what capabilities are supported in ArgoUML and how they map to the UI is to reverse engineer a simple example that does what you want. Templated classes (TemplateParameters, Bindings, etc) are incompletely implemented in ArgoUML 0.34 (the current release). If you reverse engineer a class using the generic placeholder E, you’ll end up with not only a Template Parameter named E, but another class named E as well, so it’s getting a little confused.

    Unfortunately, I don’t think the suggestion to use multiplicity (how you say things are multi-valued in UML) will work in this case because a) a Set has additional semantics regarding uniqueness, etc and b) you presumably want to show the generalization to java.util.Set, not just any old random set implementation.

    You can see the placeholder for this in UI in the Template Parameters field at the bottom of the property panel for a Class. It will allow you to create a Template Parameter, but not do much else with it.

    Probably the best you can do for right now is to just type your input and return parameters as plain old Set and forego the specificity of a strongly typed Set.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have: Toby Tiny Tory Tily Is there an algorithm that can easily
Suppose we have a class called AccountService that manages the state of accounts. AccountService
Suppose I have an abstract base class, that just defines a container on which
There is a design problem like this. Suppose you have a set of class
Suppose you have a class Dog , that has public class Dog { private
Suppose I have an API that returns a Task as an object: private static
Suppose I have a class called vector that maintains some internal, dynamic array of
Suppose I have a Runnable that does a simple file writing operation, and this
Suppose I have a Java application that opens a database connection. Normally I would
Suppose I have a stringbuilder in C# that does this: StringBuilder sb = new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.