Class Info
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.pbf.Info
-
public final class Info extends java.lang.Object
Optional metadata for primitives- Since:
- 18695
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Longchangeset()Get the OSM changesetbooleanisVisible()Get the visibility of the objectjava.lang.Longtimestamp()Get the OSM timestampjava.lang.Integeruid()Get the OSM user idjava.lang.IntegeruserSid()Get the id for the username in the PBFintversion()Get the OSM version
-
-
-
Constructor Detail
-
Info
public Info(int version, @Nullable java.lang.Long timestamp, @Nullable java.lang.Long changeset, @Nullable java.lang.Integer uid, @Nullable java.lang.Integer userSid, boolean visible)
Create a newInfoobject- Parameters:
version- The OSM versiontimestamp- The OSM timestampchangeset- The OSM changesetuid- The user IDuserSid- The string id for the user namevisible-falseif the element was deleted for this version
-
-
Method Detail
-
version
public int version()
Get the OSM version- Returns:
- The version
-
timestamp
public java.lang.Long timestamp()
Get the OSM timestamp- Returns:
- The timestamp
-
changeset
public java.lang.Long changeset()
Get the OSM changeset- Returns:
- The changeset
-
uid
public java.lang.Integer uid()
Get the OSM user id- Returns:
- The user id
-
userSid
public java.lang.Integer userSid()
Get the id for the username in the PBF- Returns:
- The user string id (in PBF strings)
-
isVisible
public boolean isVisible()
Get the visibility of the object- Returns:
falseif the object was deleted
-
-