/[schmitzm]/trunk/src/skrueger/geotools/AttributeMetadataMap.java
ViewVC logotype

Diff of /trunk/src/skrueger/geotools/AttributeMetadataMap.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1048 by alfonx, Wed Sep 22 12:15:12 2010 UTC revision 1082 by alfonx, Fri Oct 8 15:40:36 2010 UTC
# Line 1  Line 1 
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;
 import java.util.LinkedHashSet;  
6  import java.util.List;  import java.util.List;
7  import java.util.Map;  import java.util.Map;
8  import java.util.TreeMap;  import java.util.TreeMap;
 import java.util.TreeSet;  
9    
10  import org.apache.log4j.Logger;  import org.apache.log4j.Logger;
11  import org.geotools.feature.NameImpl;  import org.geotools.feature.NameImpl;
# Line 144  public abstract class AttributeMetadataM Line 143  public abstract class AttributeMetadataM
143           * @return List of {@link AMD_IMPL} objects ordered by their weight.           * @return List of {@link AMD_IMPL} objects ordered by their weight.
144           *         (heavier => further down)           *         (heavier => further down)
145           */           */
146          public TreeSet<AMD_IMPL> sortedValues() {          public List<AMD_IMPL> sortedValues() {
147                  final TreeSet<AMD_IMPL> list = new TreeSet<AMD_IMPL>();                  final List<AMD_IMPL> list = new ArrayList<AMD_IMPL>();
148                  list.addAll(values());                  final Collection<AMD_IMPL> values = values();
149  //              Collections.sort(list);                  list.addAll(values);
150                    Collections.sort(list);
151                  return list;                  return list;
152          }          }
153    

Legend:
Removed from v.1048  
changed lines
  Added in v.1082

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26