Changeset 4387 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2011-08-31T17:15:24+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitiveType.java
r4172 r4387 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.osm; 3 3 4 import static org.openstreetmap.josm.tools.I18n.marktr; 4 5 import static org.openstreetmap.josm.tools.I18n.tr; 5 6 6 7 import java.text.MessageFormat; 8 import java.util.Arrays; 9 import java.util.Collection; 7 10 8 11 public enum OsmPrimitiveType { … … 15 18 CLOSEDWAY (marktr(/* ICON(data/) */"closedway"), null, WayData.class), 16 19 MULTIPOLYGON (marktr(/* ICON(data/) */"multipolygon"), null, RelationData.class); 20 21 private final static Collection<OsmPrimitiveType> DATA_VALUES = Arrays.asList(NODE, WAY, RELATION); 17 22 18 23 private final String apiTypeName; … … 61 66 } 62 67 68 public static Collection<OsmPrimitiveType> dataValues() { 69 return DATA_VALUES; 70 } 71 63 72 public OsmPrimitive newInstance(long uniqueId, boolean allowNegative) { 64 73 switch (this) {
Note:
See TracChangeset
for help on using the changeset viewer.