Worldwind public release 0.2
[worldwind-tracker.git] / gov / nasa / worldwind / Cacheable.java
blob3ca5e8ffec941d1cdcdac68919dc91035dc3b93d
1 package gov.nasa.worldwind;
2 /*
3 Copyright (C) 2001, 2006 United States Government
4 as represented by the Administrator of the
5 National Aeronautics and Space Administration.
6 All Rights Reserved.
7 */
9 /**
10 * @author Tom Gaskins
11 * @version $Id: Cacheable.java 403 2006-12-13 02:33:18Z ericdalgliesh $
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
18 /**
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();