Search code examples
plantuml

PlantUML, one generic class - with many different occurences - on 1 diagram


In PlantUML, is it possible to show - on one diagram - many differently parametrized, one generic class?
Like here:

@startuml
class List<String>
class List<Long>
class List<Integer>
@enduml

In my case it shows only class List<Integer>
Thanks!


Solution

  • Using as fixes this:

    @startuml
    class "List<String>" as ListString
    class "List<Long>" as ListLong
    class "List<Integer>" as ListInteger
    @enduml
    

    enter image description here