Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 984 → Rev 985

/trunk/src/org/tela_botanica/client/modeles/collection/CollectionACommentaireListe.java
New file
0,0 → 1,34
package org.tela_botanica.client.modeles.collection;
 
import org.tela_botanica.client.modeles.aDonneeListe;
 
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
 
public class CollectionACommentaireListe extends aDonneeListe<CollectionACommentaire> {
 
private static final long serialVersionUID = 1L;
 
public CollectionACommentaireListe() {
super();
}
public CollectionACommentaireListe(int taille) {
super(taille);
}
public CollectionACommentaireListe(JSONArray collectionACommentaires) {
super(collectionACommentaires.size()) ;
final int taillemax = collectionACommentaires.size();
for (int i = 0; i < taillemax; i++) {
JSONObject collectionACommentaireCourant = collectionACommentaires.get(i).isObject() ;
if (collectionACommentaireCourant != null) {
CollectionACommentaire collectionACommentaire = new CollectionACommentaire(collectionACommentaireCourant);
this.put(collectionACommentaire.getId(), collectionACommentaire);
}
}
}
}