/[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 1048 by alfonx, Wed Sep 22 12:15:12 2010 UTC
# Line 2  package skrueger.geotools; Line 2  package skrueger.geotools;
2    
3  import java.util.ArrayList;  import java.util.ArrayList;
4  import java.util.Collections;  import java.util.Collections;
5    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;
9    import java.util.TreeSet;
10    
11  import org.apache.log4j.Logger;  import org.apache.log4j.Logger;
12  import org.geotools.feature.NameImpl;  import org.geotools.feature.NameImpl;
# Line 142  public abstract class AttributeMetadataM Line 144  public abstract class AttributeMetadataM
144           * @return List of {@link AMD_IMPL} objects ordered by their weight.           * @return List of {@link AMD_IMPL} objects ordered by their weight.
145           *         (heavier => further down)           *         (heavier => further down)
146           */           */
147          public List<AMD_IMPL> sortedValues() {          public TreeSet<AMD_IMPL> sortedValues() {
148                  final ArrayList<AMD_IMPL> list = new ArrayList<AMD_IMPL>();                  final TreeSet<AMD_IMPL> list = new TreeSet<AMD_IMPL>();
149                  list.addAll(values());                  list.addAll(values());
150                  Collections.sort(list);  //              Collections.sort(list);
151                  return list;                  return list;
152          }          }
153    
# Line 161  public abstract class AttributeMetadataM Line 163  public abstract class AttributeMetadataM
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  }  }

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26