1 package gov
.nasa
.worldwind
.cache
;
3 Copyright (C) 2001, 2006 United States Government
4 as represented by the Administrator of the
5 National Aeronautics and Space Administration.
11 * @version $Id: Cacheable.java 2422 2007-07-25 23:07:49Z tgaskins $
13 public interface Cacheable
15 // TODO: search for size queries that do not used this interface and change them to do so.
16 // currently (22 Nov 2006), only BasicElevationModel.addTileToCache(Tile, ShortBuffer) does not use Cacheable
19 * Retrieves the approximate size of this object in bytes. Implementors are encouraged to calculate the exact size
20 * for smaller objects, but use approximate values for objects that include such large components that the
21 * approximation would produce an error so small that the extra computation would be wasteful.
23 * @return this <code>Cacheable</code> object's size in bytes
25 long getSizeInBytes();