Collection AND HashSet

lernen.2007

Erfahrenes Mitglied
Hallo Leute,

wie kann ich sowas:
Collection warenkorb = new HashSet();

wieder in collection Typ umwandeln?

wenn ich somache:
(Collection) warenkorb.

dann ist die Typ immer noch HashSet.

Das wäre wichtig für die <h:dataTable> in jsp, weil das nur Collections akzeptiert.

Danke
 
Zurück