java.lang.Object
org.openstreetmap.josm.data.osm.pbf.Info

public final class Info extends Object
Optional metadata for primitives
Since:
18695
  • Field Details

  • Constructor Details

    • Info

      public Info(int version, @Nullable Long timestamp, @Nullable Long changeset, @Nullable Integer uid, @Nullable Integer userSid, boolean visible)
      Create a new Info object
      Parameters:
      version - The OSM version
      timestamp - The OSM timestamp
      changeset - The OSM changeset
      uid - The user ID
      userSid - The string id for the user name
      visible - false if the element was deleted for this version
  • Method Details

    • version

      public int version()
      Get the OSM version
      Returns:
      The version
    • timestamp

      public Long timestamp()
      Get the OSM timestamp
      Returns:
      The timestamp
    • changeset

      public Long changeset()
      Get the OSM changeset
      Returns:
      The changeset
    • uid

      public Integer uid()
      Get the OSM user id
      Returns:
      The user id
    • userSid

      public 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:
      false if the object was deleted