public long getEstimatedMemorySizeInBytes() { return INSTANCE_SIZE + ogcGeometry.estimateMemorySize(); } }
private static long getGeometryMemorySize(OGCGeometry geometry) { if (geometry == null) { return 0; } // Due to the following issue: // https://github.com/Esri/geometry-api-java/issues/192 // We must check if the geometry is empty before calculating its size. Once the issue is resolved // and we bring the fix into our codebase, we can remove this check. if (geometry.isEmpty()) { return OGC_GEOMETRY_BASE_INSTANCE_SIZE; } return geometry.estimateMemorySize(); }
@Override public long estimateMemorySize() { long size = SIZE_OF_OGC_CONCRETE_GEOMETRY_COLLECTION; if (geometries != null) { for (OGCGeometry geometry : geometries) { size += geometry.estimateMemorySize(); } } return size; }
public long getEstimatedMemorySizeInBytes() { return INSTANCE_SIZE + ogcGeometry.estimateMemorySize(); } }
public long getEstimatedMemorySizeInBytes() { return INSTANCE_SIZE + ogcGeometry.estimateMemorySize(); } }
@Override public long estimateMemorySize() { long size = SIZE_OF_OGC_CONCRETE_GEOMETRY_COLLECTION; if (geometries != null) { for (OGCGeometry geometry : geometries) { size += geometry.estimateMemorySize(); } } return size; }
private static long getGeometryMemorySize(OGCGeometry geometry) { if (geometry == null) { return 0; } // Due to the following issue: // https://github.com/Esri/geometry-api-java/issues/192 // We must check if the geometry is empty before calculating its size. Once the issue is resolved // and we bring the fix into our codebase, we can remove this check. if (geometry.isEmpty()) { return OGC_GEOMETRY_BASE_INSTANCE_SIZE; } return geometry.estimateMemorySize(); }
private static long getGeometryMemorySize(OGCGeometry geometry) { if (geometry == null) { return 0; } // Due to the following issue: // https://github.com/Esri/geometry-api-java/issues/192 // We must check if the geometry is empty before calculating its size. Once the issue is resolved // and we bring the fix into our codebase, we can remove this check. if (geometry.isEmpty()) { return OGC_GEOMETRY_BASE_INSTANCE_SIZE; } return geometry.estimateMemorySize(); }