Class Info


  • public final class Info
    extends java.lang.Object
    Optional metadata for primitives
    Since:
    18695
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Long changeset  
      private java.lang.Long timestamp  
      private java.lang.Integer uid  
      private java.lang.Integer userSid  
      private int version  
      private boolean visible  
    • Constructor Summary

      Constructors 
      Constructor Description
      Info​(int version, java.lang.Long timestamp, java.lang.Long changeset, java.lang.Integer uid, java.lang.Integer userSid, boolean visible)
      Create a new Info object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Long changeset()
      Get the OSM changeset
      boolean isVisible()
      Get the visibility of the object
      java.lang.Long timestamp()
      Get the OSM timestamp
      java.lang.Integer uid()
      Get the OSM user id
      java.lang.Integer userSid()
      Get the id for the username in the PBF
      int version()
      Get the OSM version
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • version

        private final int version
      • timestamp

        private final java.lang.Long timestamp
      • changeset

        private final java.lang.Long changeset
      • uid

        private final java.lang.Integer uid
      • userSid

        private final java.lang.Integer userSid
      • visible

        private final boolean visible
    • 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 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 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:
        false if the object was deleted