generics casting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tomba

    #1

    generics casting

    hi,

    I'm trying to cast a LinkedList<Edge Point> to Iterable<Diagra mElement>.
    Just casting by (Iterable<Diagr amElement>)list results in an error.

    However I think it should be possible as:
    - LinkedList implements Iterable
    - EdgePoint implements DiagramElement

    Is there anyone who knows how to solve this?

    thanks
Working...