Ignore:
Timestamp:
2009-10-11T16:37:08+02:00 (15 years ago)
Author:
jttt
Message:

Replace testing for id <= 0 with isNew() method

File:
1 edited

Legend:

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

    r2264 r2273  
    332332    public long getId() {
    333333        return id;
     334    }
     335
     336    /**
     337     *
     338     * @return True if primitive is new (not yet uploaded the server, id <= 0)
     339     */
     340    public boolean isNew() {
     341        return id <= 0;
    334342    }
    335343
Note: See TracChangeset for help on using the changeset viewer.