Class CellId

    • Constructor Detail

      • CellId

        public CellId​(int zoomLevel,
                      long id)
        As every cellid is by definition linked to a zoomLevel, this class combines this information.
        Parameters:
        zoomLevel - between 0:30
        id - >= 0
    • Method Detail

      • getLevelId

        public static long getLevelId​(int zoomlevel,
                                      long id)
      • getLevelId

        public long getLevelId()
      • fromLevelId

        public static CellId fromLevelId​(long levelId)
        Converts a long level id to CellId.
        Parameters:
        levelId - the long id from the conversion
      • getId

        public long getId()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getZoomLevel

        public int getZoomLevel()