public static enum DiskCachedTile.TileAction extends Enum<DiskCachedTile.TileAction>
| Enum Constant and Description |
|---|
ACTION_ACCESSED
Value that will be returned by getAction() when
the tile is accessed via the cache
|
ACTION_ADDED
Value that will be returned by getAction() when
the tile has been added to the cache
|
ACTION_ADDED_RESIDENT
Value that will be returned by getAction() when
the tile has been added to the cache and immediately loaded
into memory
|
ACTION_GARBAGE_COLLECTED
Value that will be returned by getAction() when
the tile's raster has been garbage collected
|
ACTION_NON_RESIDENT
Value that will be returned by getAction() when
the tile is removed from memory
|
ACTION_REMOVED
Value that will be returned by getAction() when
the tile is removed from the cache entirely
|
ACTION_RESIDENT
Value that will be returned by getAction() when
the tile becomes resident in memory
|
| Modifier and Type | Method and Description |
|---|---|
static DiskCachedTile.TileAction |
get(int actionValue)
Reverse lookup.
|
int |
getAction()
Retrieves an int associated to this action for interoperability with
CachedTile interface. |
static DiskCachedTile.TileAction |
getDefault()
The default action.
|
String |
getDescription()
Retrieves a description of this action
|
static DiskCachedTile.TileAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DiskCachedTile.TileAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiskCachedTile.TileAction ACTION_ADDED
public static final DiskCachedTile.TileAction ACTION_ADDED_RESIDENT
public static final DiskCachedTile.TileAction ACTION_RESIDENT
public static final DiskCachedTile.TileAction ACTION_NON_RESIDENT
public static final DiskCachedTile.TileAction ACTION_REMOVED
public static final DiskCachedTile.TileAction ACTION_ACCESSED
public static final DiskCachedTile.TileAction ACTION_GARBAGE_COLLECTED
public static DiskCachedTile.TileAction[] values()
for (DiskCachedTile.TileAction c : DiskCachedTile.TileAction.values()) System.out.println(c);
public static DiskCachedTile.TileAction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getAction()
CachedTile interface.CachedTile interface.public String getDescription()
public static DiskCachedTile.TileAction get(int actionValue)
actionValue - integer value of the actionpublic static DiskCachedTile.TileAction getDefault()
Copyright © 2009–2018. All rights reserved.