You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Spranger, Steffen" <St...@incowia.com> on 2006/12/13 09:18:04 UTC

Generic Collection and Betwixt

Hi,

has anyone worked with Java 5 Generic collection in betwixt?
I'm looking for a possibility to store in(and read from) XML collections
of different types without having to write my own collection class.

Example: 
public class PersonCollection {
	List<Person> mPersons;
	public List getPersons() {
	public void setPersons(List persons) {
	public void addPerson(Person person) {
}
Can I store (and read) a collection of Person-instances without my
explicit PersonCollection?

Regards,
	Steffen




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org