Whats the best to way convert a set of Java objects to another set of objects?
- by HDave
Basic Java question here from a real newbie. I have a set of Java objects (of class "MyClass") that implement a certain interface (Interface "MyIfc"). I have a set of these objects stored in a private variable in my class that is declared as follows:
protected Set<MyClass> stuff = new HashSet<MyClass>();
I need to provide a public…