Changeset 10946 in josm for trunk/src/org/openstreetmap/josm/data/osm/PrimitiveData.java
- Timestamp:
- 2016-09-03T20:01:46+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/PrimitiveData.java
r10868 r10946 30 30 } 31 31 32 /** 33 * Constructs a new {@code PrimitiveData} from an existing one. 34 * @param data the data to copy 35 */ 32 36 public PrimitiveData(PrimitiveData data) { 33 37 cloneFrom(data); 34 38 } 35 39 40 /** 41 * Sets the primitive identifier. 42 * @param id primitive identifier 43 */ 36 44 public void setId(long id) { 37 45 this.id = id; 38 46 } 39 47 48 /** 49 * Sets the primitive version. 50 * @param version primitive version 51 */ 40 52 public void setVersion(int version) { 41 53 this.version = version; … … 50 62 } 51 63 64 /** 65 * Returns a copy of this primitive data. 66 * @return a copy of this primitive data 67 */ 52 68 public abstract PrimitiveData makeCopy(); 53 69 … … 82 98 oos.writeInt(timestamp); 83 99 oos.writeObject(keys); 100 oos.writeShort(flags); 84 101 oos.defaultWriteObject(); 85 102 } … … 94 111 timestamp = ois.readInt(); 95 112 keys = (String[]) ois.readObject(); 113 flags = ois.readShort(); 96 114 ois.defaultReadObject(); 97 115 }
Note:
See TracChangeset
for help on using the changeset viewer.