1 |
package skrueger.geotools; |
package skrueger.geotools; |
2 |
|
|
3 |
import java.util.ArrayList; |
import java.util.ArrayList; |
4 |
|
import java.util.Collection; |
5 |
import java.util.Collections; |
import java.util.Collections; |
6 |
import java.util.List; |
import java.util.List; |
7 |
import java.util.Map; |
import java.util.Map; |
144 |
* (heavier => further down) |
* (heavier => further down) |
145 |
*/ |
*/ |
146 |
public List<AMD_IMPL> sortedValues() { |
public List<AMD_IMPL> sortedValues() { |
147 |
final ArrayList<AMD_IMPL> list = new ArrayList<AMD_IMPL>(); |
final List<AMD_IMPL> list = new ArrayList<AMD_IMPL>(); |
148 |
list.addAll(values()); |
Collection<AMD_IMPL> values = values(); |
149 |
|
list.addAll(values); |
150 |
Collections.sort(list); |
Collections.sort(list); |
151 |
return list; |
return list; |
152 |
} |
} |
163 |
} |
} |
164 |
return list; |
return list; |
165 |
} |
} |
166 |
|
|
167 |
|
/** |
168 |
|
* Just for debuggung. Simply returns {@code super.put(.)}. |
169 |
|
* TODO: remove this method. |
170 |
|
*/ |
171 |
|
@Override |
172 |
|
public AMD_IMPL put(Name key, AMD_IMPL value) { |
173 |
|
return super.put(key, value); |
174 |
|
}; |
175 |
|
|
176 |
} |
} |