1 |
package skrueger.geotools; |
package skrueger.geotools; |
2 |
|
|
3 |
import java.util.ArrayList; |
import java.util.ArrayList; |
|
import java.util.Collections; |
|
4 |
import java.util.List; |
import java.util.List; |
5 |
import java.util.Map; |
import java.util.Map; |
6 |
import java.util.TreeMap; |
import java.util.TreeMap; |
7 |
|
import java.util.TreeSet; |
8 |
|
|
9 |
import org.apache.log4j.Logger; |
import org.apache.log4j.Logger; |
10 |
import org.geotools.feature.NameImpl; |
import org.geotools.feature.NameImpl; |
142 |
* @return List of {@link AMD_IMPL} objects ordered by their weight. |
* @return List of {@link AMD_IMPL} objects ordered by their weight. |
143 |
* (heavier => further down) |
* (heavier => further down) |
144 |
*/ |
*/ |
145 |
public List<AMD_IMPL> sortedValues() { |
public TreeSet<AMD_IMPL> sortedValues() { |
146 |
final ArrayList<AMD_IMPL> list = new ArrayList<AMD_IMPL>(); |
final TreeSet<AMD_IMPL> list = new TreeSet<AMD_IMPL>(); |
147 |
list.addAll(values()); |
list.addAll(values()); |
148 |
Collections.sort(list); |
// Collections.sort(list); |
149 |
return list; |
return list; |
150 |
} |
} |
151 |
|
|
161 |
} |
} |
162 |
return list; |
return list; |
163 |
} |
} |
164 |
|
|
165 |
|
/** |
166 |
|
* Just for debuggung. Simply returns {@code super.put(.)}. |
167 |
|
* TODO: remove this method. |
168 |
|
*/ |
169 |
|
@Override |
170 |
|
public AMD_IMPL put(Name key, AMD_IMPL value) { |
171 |
|
return super.put(key, value); |
172 |
|
}; |
173 |
|
|
174 |
} |
} |