Jean-Francois Leveque

Passage de Set en List pour les ensembles de recommandations.

package org.legrog.recommendation.process;
import java.util.HashSet;
import java.util.Set;
import java.util.ArrayList;
import java.util.List;
public class ProcessingRecommendations {
Set<RecommendationElement> recommendations;
List<RecommendationElement> recommendations;
public ProcessingRecommendations() {
recommendations = new HashSet<>();
recommendations = new ArrayList<>();
}
public void addRecommentation(RecommendationElement recommendationElement) {
recommendations.add(recommendationElement);
}
public Set<RecommendationElement> getRecommendations() {
public List<RecommendationElement> getRecommendations() {
return recommendations;
}
}
}
\ No newline at end of file
......