Rev 258 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package org.tela_botanica.client.modeles;import java.util.LinkedHashMap;/*** table de hachage composée d'entite geographique, renvoyé par les objets de type DAO* La clé est le nom de l'entite + le nom de l'entite parente** @author david delon**/public class ListeEntiteGeographiqueObservation extends LinkedHashMap<String, EntiteGeographiqueObservation> {private static final long serialVersionUID = 2717710270773281540L;/*** Constructeur sans paramètres*/public ListeEntiteGeographiqueObservation(){super();}/*** Constructeur avec paramètre* @param taille la taille de la table de hachage*/public ListeEntiteGeographiqueObservation(int taille){super(taille);}/*** Constructeur avec paramètre* @param ic un tableau d'ImageCarnet*/public ListeEntiteGeographiqueObservation(EntiteGeographiqueObservation[] ent){super() ;for (int i = 0; i < ent.length; i++){if(ent[i] != null && ent[i] instanceof EntiteGeographiqueObservation){this.put(ent[i].hashCode()+"",ent[i]);}}}public void put(EntiteGeographiqueObservation value) {this.put(value.hashCode()+"",value);}}