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
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