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); |
} |
} |
} |
|
} |