Class PlaceNameLayer.PlaceNameChunk

  • All Implemented Interfaces:
    Cacheable
    Enclosing class:
    PlaceNameLayer

    protected static class PlaceNameLayer.PlaceNameChunk
    extends java.lang.Object
    implements Cacheable
    • Field Detail

      • textArray

        protected final java.nio.CharBuffer textArray
      • textIndexArray

        protected final int[] textIndexArray
      • latlonArray

        protected final double[] latlonArray
      • numEntries

        protected final int numEntries
      • estimatedMemorySize

        protected final long estimatedMemorySize
    • Constructor Detail

      • PlaceNameChunk

        protected PlaceNameChunk​(PlaceNameService service,
                                 java.nio.CharBuffer text,
                                 int[] textIndices,
                                 double[] positions,
                                 int numEntries)
    • Method Detail

      • computeEstimatedMemorySize

        protected long computeEstimatedMemorySize()
      • getPosition

        protected Position getPosition​(int index)
      • getText

        protected java.lang.CharSequence getText​(int index)
      • getSizeInBytes

        public long getSizeInBytes()
        Description copied from interface: Cacheable
        Retrieves the approximate size of this object in bytes. Implementors are encouraged to calculate the exact size for smaller objects, but use approximate values for objects that include such large components that the approximation would produce an error so small that the extra computation would be wasteful.
        Specified by:
        getSizeInBytes in interface Cacheable
        Returns:
        this Cacheable object's size in bytes