public Collection<T> getCollection() {
return collection;
}
- public void setCollection(Collection<T> collection) {
- this.collection = collection;
+ public void addItem(T item) {
+ this.collection.add(item);
+ count++;
}
public LocalDateTime getLastUpdated() {
public List<FactDto> getFacts() {
return facts;
}
- public void setFacts(List<FactDto> facts) {
- this.facts = facts;
+ public void addFact(FactDto factDto) {
+ facts.add(factDto);
}
-
}
featureDto.setUuid(feature.getUuid());
//TODO locale
featureDto.setLabel(feature.getTitleCache());
- features.getCollection().add(featureDto);
+ features.addItem(featureDto);
//
for (DescriptionElementBase fact : featureMap.get(feature)){