- All Implemented Interfaces:
Serializable
,Comparable<TileStatus>
,Constable
Information about the availability of a tile. Some
TileMatrix
implementations
may not know whether a tile exists or not before the first attempt to read that tile.
Consequently, a tile status may be initially UNKNOWN
and transitions
at a later time to a state such as EXISTS
, MISSING
or IN_ERROR
.- Since:
- 1.2
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe tile exists.The tile exists but attempt to read it failed.The tile is flagged as missing.The tile for which a status has been requested is outside theTileMatrix
extent.The tile status cannot be known unless the tile is read. -
Method Summary
Modifier and TypeMethodDescriptionstatic TileStatus
Returns the enum constant of this class with the specified name.static TileStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UNKNOWN
The tile status cannot be known unless the tile is read. This value is returned by someTileMatrix
implementations when determining the availability of a tile would require relatively costly I/O operations. -
EXISTS
The tile exists. However, this is not a guarantee that no I/O error will happen when reading the tile, neither that the tile will be non-empty. If an I/O error happens at tile reading time, then the tile status should transition fromEXISTS
toIN_ERROR
. -
MISSING
The tile is flagged as missing. It may happen in regions where no data is available. -
OUTSIDE_EXTENT
The tile for which a status has been requested is outside theTileMatrix
extent. -
IN_ERROR
The tile exists but attempt to read it failed. It may be because anIOException
occurred while reading the tile.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-