Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultCollection.java @ 6540:24ca2f683c00
Doc, yay, adds color.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 05 Jul 2013 09:01:57 +0200 |
parents | ea9eef426962 |
children | 4b42ab2e9060 |
comparison
equal
deleted
inserted
replaced
6539:4c463ca9b36e | 6540:24ca2f683c00 |
---|---|
282 public void addRecommendations(List<Recommendation> recommendations) { | 282 public void addRecommendations(List<Recommendation> recommendations) { |
283 this.recommendations.addAll(recommendations); | 283 this.recommendations.addAll(recommendations); |
284 } | 284 } |
285 | 285 |
286 | 286 |
287 /** | |
288 * Returns true if a recommendation with given factory and id | |
289 * is already member of this collection. | |
290 */ | |
287 public boolean loadedRecommendation(Recommendation recommendation) { | 291 public boolean loadedRecommendation(Recommendation recommendation) { |
288 String factory = recommendation.getFactory(); | 292 String factory = recommendation.getFactory(); |
289 String dbids = recommendation.getIDs(); | 293 String dbids = recommendation.getIDs(); |
290 | 294 |
291 for (Recommendation in: recommendations) { | 295 for (Recommendation in: recommendations) { |