Class OSHNodeImpl

    • Method Detail

      • instance

        public static OSHNodeImpl instance​(byte[] data,
                                           int offset,
                                           int length)
      • instance

        public static OSHNodeImpl instance​(byte[] data,
                                           int offset,
                                           int length,
                                           long baseNodeId,
                                           long baseTimestamp,
                                           int baseLongitude,
                                           int baseLatitude)
        Creates an instances of OSHNodeImpl from the given byte array.
      • build

        public static OSHNodeImpl build​(List<OSMNode> versions,
                                        long baseId,
                                        long baseTimestamp,
                                        int baseLongitude,
                                        int baseLatitude)
        Creates a OSHNode bases on the given list of node versions.
      • buildRecord

        public static ByteBuffer buildRecord​(List<OSMNode> versions,
                                             long baseId,
                                             long baseTimestamp,
                                             int baseLongitude,
                                             int baseLatitude)
        Creates a OSHNode bases on the given list of node versions, but returns the underlying ByteBuffer instead of an instance of OSHNode.
      • hasTags

        public boolean hasTags()