/[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 797 by alfonx, Sat Apr 10 16:12:40 2010 UTC revision 1052 by alfonx, Thu Sep 23 16:15:25 2010 UTC
# Line 1  Line 1 
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;
# Line 142  public abstract class AttributeMetadataM Line 142  public abstract class AttributeMetadataM
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    
# Line 161  public abstract class AttributeMetadataM Line 161  public abstract class AttributeMetadataM
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  }  }

Legend:
Removed from v.797  
changed lines
  Added in v.1052

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26