Ignore:
Timestamp:
2017-05-16T00:01:44+02:00 (9 years ago)
Author:
michael2402
Message:

See #14794: More javadoc for data.osm package

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/SimplePrimitiveId.java

    r10300 r12190  
    1010import java.util.regex.Pattern;
    1111
     12/**
     13 * A primitive id and a primitive type
     14 */
    1215public class SimplePrimitiveId implements PrimitiveId, Serializable {
    1316
     
    1720    private final OsmPrimitiveType type;
    1821
     22    /**
     23     * A pattern that is used to parse a textual primitive id
     24     */
    1925    public static final Pattern ID_PATTERN = Pattern.compile("(n|node|w|way|r|rel|relation)[ /]?(\\d+)");
    2026
     27    /**
     28     * A pattern that is used to parse an id range
     29     */
    2130    public static final Pattern MULTIPLE_IDS_PATTERN = Pattern.compile(ID_PATTERN.pattern() + "(-(\\d+))?");
    2231
     32    /**
     33     * Create a new primtive id
     34     * @param id The id
     35     * @param type The type of the primitive
     36     */
    2337    public SimplePrimitiveId(long id, OsmPrimitiveType type) {
    2438        this.id = id;
Note: See TracChangeset for help on using the changeset viewer.