Rev 363 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package org.tela_botanica.client.modeles;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
abstract public class aDonneeListe<T> extends HashMap<String,T> {
private static final long serialVersionUID = -8567158151109232877L;
public aDonneeListe() {
super();
}
public aDonneeListe(int taille) {
super(taille);
}
public List<T> toList() {
List<T> listeACreer = new ArrayList<T>();
Iterator<String> it = keySet().iterator();
while (it.hasNext()) {
listeACreer.add((T) get(it.next()));
}
return listeACreer;
}
}