Converting Sets



What is the cleanest way to do this conversion?

I have a Set<X>.
I want a Set<Y> where X implements Y.
--
Roedy Green Canadian Mind Products
http://mindprod.com
One of the most useful comments you can put in a program is
"If you change this, remember to change ?XXX? too".

.



Relevant Pages

  • Re: new JDK 1.7.0_04 and 1.6.0_32
    ... I have written some hand-holding notes at ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.programmer)
  • Re: Java serialization over network
    ... Roedy Green Canadian Mind Products ... "Danish studies of 10,000 birds killed revealed that almost all died in ...
    (comp.lang.java.programmer)
  • Re: Clearing the cmd window
    ... Roedy Green Canadian Mind Products ... "The most significant trend in the US industry has been the decline in the amount ...
    (comp.lang.java.help)
  • Re: Issue With ArrayList
    ... Roedy Green Canadian Mind Products ... Rapidly agin'. ...
    (comp.lang.java.programmer)
  • Re: [Popupmenu]What is the use of Label and Name
    ... Roedy Green Canadian Mind Products ... "Out of 135 criminals, including robbers and rapists, 118 admitted that when they were children they burned, hanged and stabbed domestic animals." ...
    (comp.lang.java.help)