Added new result containing sorted set data

This commit is contained in:
Benjamin Barth committed 2015-07-06 15:11:14 +02:00
1 parent 3a72b6d159
commit 363bf5f5d7
1 file changed
+26
@@ -0,0 +1,26 @@
package com.sap.sailing.gwt.ui.shared.dispatch;
import java.util.Collection;
import java.util.Set;
import java.util.TreeSet;
public class SortedSetResult<T extends DTO> implements DTO, Result {
private TreeSet<T> values = new TreeSet<>();
@SuppressWarnings("unused")
private SortedSetResult() {
}
public SortedSetResult(Collection<T> values) {
super();
this.values.addAll(values);
}
public Set<T> getValues() {
return values;
}
public boolean isEmpty() {
return values.isEmpty();
}
}