Subversion Repositories eFlore/Applications.coel

Rev

Rev 1513 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
363 jp_milcent 1
package org.tela_botanica.client.modeles;
2
 
3
import java.util.ArrayList;
4
import java.util.HashMap;
5
import java.util.Iterator;
6
import java.util.List;
7
 
8
abstract public class aDonneeListe<T> extends HashMap<String,T> {
9
 
10
	private static final long serialVersionUID = -8567158151109232877L;
11
 
12
	public aDonneeListe() {
13
		super();
14
	}
15
 
16
	public aDonneeListe(int taille) {
17
		super(taille);
18
	}
19
 
20
	public List<T> toList() {
21
		List<T> listeACreer = new ArrayList<T>();
22
		Iterator<String> it = keySet().iterator();
23
		while (it.hasNext()) {
24
			listeACreer.add((T) get(it.next()));
25
		}
26
		return listeACreer;
27
	}
28
}