Changeset 2932 in josm for trunk/src/org/openstreetmap/josm/data/osm/PrimitiveData.java
- Timestamp:
- 03.02.2010 22:53:24 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/PrimitiveData.java
r2818 r2932 4 4 import java.util.ArrayList; 5 5 import java.util.Collection; 6 import java.util.Date; 6 7 import java.util.HashMap; 7 8 import java.util.List; … … 47 48 private User user; 48 49 private int version; 49 private int timestamp;50 private Date timestamp = new Date(); 50 51 private int changesetId; 51 52 … … 69 70 } 70 71 public long getId() { 71 return id ;72 return id > 0 ? id : 0; 72 73 } 73 74 public void setId(long id) { … … 86 87 this.version = version; 87 88 } 88 public intgetTimestamp() {89 public Date getTimestamp() { 89 90 return timestamp; 90 91 } 91 public void setTimestamp( inttimestamp) {92 public void setTimestamp(Date timestamp) { 92 93 this.timestamp = timestamp; 93 94 } … … 194 195 } 195 196 197 /** 198 * Returns a PrimitiveId object for this primitive 199 * 200 * @return the PrimitiveId for this primitive 201 */ 202 public PrimitiveId getPrimitiveId() { 203 return new SimplePrimitiveId(getUniqueId(), getType()); 204 } 205 196 206 public boolean isNew() { 197 207 return id <= 0;
Note: See TracChangeset
for help on using the changeset viewer.
