public class ChangeSet extends GenericTaggedNode<ChangeSet> implements java.lang.Comparable<ChangeSet>, java.io.Serializable
GenericTaggedNode.ExtendedGTNAttr
Modifier and Type | Field and Description |
---|---|
int |
id
Sequential ID number assigned to this changeset.
|
java.lang.String |
timestamp
The timestamp when this changeset was submitted to OpenStreetMap.
|
java.lang.String |
uid
User ID of the user who submitted this changeset to OpenStreetMap.
|
java.lang.String |
user
Name of the user who submitted this changeset to OpenStreetMap.
|
static int |
YAAC_STRUCTURE_VERSION
Constant for indicating structural changes to YAAC compilation of OSM data.
|
int |
yaacStructureVersion
The OSM binary encoding structure version of YAAC that was used to create the tile files.
|
decodedtagArray, extraAmenities, FIXME, FIXME_OBJ, flags, flags2, FLAGS2_BOGUS, FLAGS2_BOGUS_OBJ, FLAGS2_FEE, FLAGS2_FEE_OBJ, FLAGS2_FLOOD_PRONE, FLAGS2_FLOOD_PRONE_OBJ, FLAGS2_HAS_POSTALADDR, FLAGS2_INTERMITTENT, FLAGS2_INTERMITTENT_OBJ, FLAGS2_IS_LIT, FLAGS2_IS_LIT_OBJ, FLAGS2_UNDERGROUND, FLAGS2_WHEELCHAIR_ACCESSIBLE, FLAGS2_WHEELCHAIR_ACCESSIBLE_OBJ, HAS_COLOR, HAS_ID, HAS_ID64, HAS_INTERNET_ACCESS, HAS_INTERNET_ACCESS_OBJ, HAS_TOLL, HAS_TOLL_OBJ, IS_AREA, IS_AREA_OBJ, IS_BRIDGE, IS_BRIDGE_OBJ, IS_BUILDING, IS_BUILDING_OBJ, IS_DISUSED, IS_DISUSED_OBJ, IS_HOLE, IS_INCOMPLETE, IS_ISLAND, IS_ISLAND_OBJ, IS_ONEWAY, IS_ONEWAY_BACKWARDS, IS_ONEWAY_BACKWARDS_OBJ, IS_ONEWAY_OBJ, IS_TUNNEL, IS_TUNNEL_OBJ, IS_WATER, MARINE, RENDERABLE_FLAGS, segmentNum
Constructor and Description |
---|
ChangeSet() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ChangeSet o)
Compares this object with the specified object for order.
|
ChangeSet |
dup()
Create a deep copy of this ChangeSet.
|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.lang.Number |
getId()
Return the ID of this OSM record as a sub-class of Number.
|
int |
hashCode()
Returns a hash code value for the object.
|
static ChangeSet |
read(java.io.DataInput dis)
Read a ChangeSet from the provided input stream.
|
void |
write(java.io.DataOutput dos)
Write this ChangeSet to a file stream.
|
void |
writeGPX(java.io.PrintStream ps)
Write this ChangeSet to the specified stream as the XML tags one element in GPX schema format.
|
protected void |
writeId(java.io.DataOutput dos)
Handle writing the ID field to the binary data stream (handles larger ID ranges in
varying subclasses).
|
addAmenityType, compareGTNAttributes, decodedTagArrayToString, ensureElementHasTagArray, hasDecodedTags, hasThisAmenity, putTag, readTags, readTags, removeRedundantAmenityTypes, replaceAmenityType, writeTags
public static final int YAAC_STRUCTURE_VERSION
public int id
public java.lang.String user
public java.lang.String uid
public java.lang.String timestamp
public int yaacStructureVersion
YAAC_STRUCTURE_VERSION
public void write(java.io.DataOutput dos) throws java.io.IOException
dos
- DataOutput interface implementer to use for the writingjava.io.IOException
- if write fails for any reason.protected void writeId(java.io.DataOutput dos) throws java.io.IOException
writeId
in class GenericTaggedNode<ChangeSet>
dos
- DataOutput to use to append the binary ID valuejava.io.IOException
- if write fails for any reasonpublic java.lang.Number getId()
getId
in class GenericTaggedNode<ChangeSet>
public static ChangeSet read(java.io.DataInput dis) throws java.io.IOException
dis
- DataInput interface implementer from which to read the ChangeSetjava.io.IOException
- if the read failed for any reasonpublic ChangeSet dup()
dup
in class GenericTaggedNode<ChangeSet>
public void writeGPX(java.io.PrintStream ps)
writeGPX
in class GenericTaggedNode<ChangeSet>
ps
- PrintStream to write topublic int hashCode()
hashCode
in class java.lang.Object
Object.equals(Object)
,
System.identityHashCode(java.lang.Object)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.hashCode()
,
HashMap
public int compareTo(ChangeSet o)
compareTo
in interface java.lang.Comparable<ChangeSet>
o
- the object to be compared.java.lang.NullPointerException
- if the specified object is nulljava.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this object.