org.jaitools.tilecache
Class TileAccessTimeComparator

java.lang.Object
  extended by org.jaitools.tilecache.TileAccessTimeComparator
All Implemented Interfaces:
Serializable, Comparator<javax.media.jai.CachedTile>

public class TileAccessTimeComparator
extends Object
implements Comparator<javax.media.jai.CachedTile>, Serializable

This is the default comparator for CachedTile objects used by DiskMemTileCache to determine priority of tiles for storage in memory. It orders tiles from most recent to least recent access time.

Since:
1.0
Version:
$Id$
Author:
Michael Bedward
See Also:
Serialized Form

Constructor Summary
TileAccessTimeComparator()
           
 
Method Summary
 int compare(javax.media.jai.CachedTile t1, javax.media.jai.CachedTile t2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

TileAccessTimeComparator

public TileAccessTimeComparator()
Method Detail

compare

public int compare(javax.media.jai.CachedTile t1,
                   javax.media.jai.CachedTile t2)
Specified by:
compare in interface Comparator<javax.media.jai.CachedTile>


Copyright © 2009-2013. All Rights Reserved.