java.lang.Object | |
↳ | com.carto.datasources.components.TileData |
A wrapper class for tile data.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TileData(BinaryData data)
Constructs a TileData object from a data blob.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
boolean |
equals(Object obj)
Checks if this object is equal to the specified object.
| ||||||||||
BinaryData |
getData()
Returns tile data as binary data.
| ||||||||||
long |
getMaxAge()
Returns the maximum age of the tile data, tile data will expire after that point.
| ||||||||||
int |
hashCode()
Returns the hash value of this object.
| ||||||||||
boolean |
isReplaceWithParent()
Returns true if the tile should be replaced with parent tile.
| ||||||||||
void |
setMaxAge(long maxAge)
Sets the maximum age of tile data, tile data will expire after that point.
| ||||||||||
void |
setReplaceWithParent(boolean flag)
Set the parent replacement flag.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a TileData object from a data blob.
data | The source tile data. |
---|
Checks if this object is equal to the specified object.
obj | The reference object. |
---|
Returns the maximum age of the tile data, tile data will expire after that point.
Returns the hash value of this object.
Returns true if the tile should be replaced with parent tile.
Sets the maximum age of tile data, tile data will expire after that point.
maxAge | Tile data maximum age in milliseconds, or -1 if the data does not expire. |
---|
Set the parent replacement flag.
flag | True when the tile should be replaced with the parent, false otherwise. |
---|