ordering labels on mindmap retreive

This commit is contained in:
Ezequiel Bergamaschi
2014-02-02 01:26:28 -03:00
committed by Ezequiel Bergamaschi
parent a4aa1c5436
commit 632a9a6e00
3 changed files with 5 additions and 3 deletions

View File

@@ -37,6 +37,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.Calendar;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;
@XmlRootElement(name = "map")
@@ -97,7 +98,7 @@ public class RestMindmapInfo {
mindmap.setTitle(title);
}
public Set<RestLabel> getLabels() {
final Set<RestLabel> result = new HashSet<>();
final Set<RestLabel> result = new LinkedHashSet<>();
for (Label label : mindmap.getLabels()) {
result.add(new RestLabel(label));
}