So I have a hashmap<x,y> myHashmap
x implements z.
I want to get an iterator for z.
Since x is a "child" of z, this shouldn't be hard, but I can't think of how to do it.
My attempt:
return (Iterator<z>) this.myHashmap.keySet().iterator();
So I have a hashmap<x,y> myHashmap
x implements z.
I want to get an iterator for z.
Since x is a "child" of z, this shouldn't be hard, but I can't think of how to do it.
My attempt:
return (Iterator<z>) this.myHashmap.keySet().iterator();