Changeset 12190 in josm for trunk/src/org/openstreetmap/josm/data/osm/SimplePrimitiveId.java
- Timestamp:
- 2017-05-16T00:01:44+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/SimplePrimitiveId.java
r10300 r12190 10 10 import java.util.regex.Pattern; 11 11 12 /** 13 * A primitive id and a primitive type 14 */ 12 15 public class SimplePrimitiveId implements PrimitiveId, Serializable { 13 16 … … 17 20 private final OsmPrimitiveType type; 18 21 22 /** 23 * A pattern that is used to parse a textual primitive id 24 */ 19 25 public static final Pattern ID_PATTERN = Pattern.compile("(n|node|w|way|r|rel|relation)[ /]?(\\d+)"); 20 26 27 /** 28 * A pattern that is used to parse an id range 29 */ 21 30 public static final Pattern MULTIPLE_IDS_PATTERN = Pattern.compile(ID_PATTERN.pattern() + "(-(\\d+))?"); 22 31 32 /** 33 * Create a new primtive id 34 * @param id The id 35 * @param type The type of the primitive 36 */ 23 37 public SimplePrimitiveId(long id, OsmPrimitiveType type) { 24 38 this.id = id;
Note:
See TracChangeset
for help on using the changeset viewer.
