public class

TileData

extends Object
java.lang.Object
   ↳ com.carto.datasources.components.TileData

Class Overview

A wrapper class for tile data.

Summary

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
From class java.lang.Object

Public Constructors

public TileData (BinaryData data)

Constructs a TileData object from a data blob.

Parameters
data The source tile data.

Public Methods

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

public BinaryData getData ()

Returns tile data as binary data.

Returns
  • Tile data as binary data.

public long getMaxAge ()

Returns the maximum age of the tile data, tile data will expire after that point.

Returns
  • Tile data maximum age in milliseconds, or -1 if the data does not expire.

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.

public boolean isReplaceWithParent ()

Returns true if the tile should be replaced with parent tile.

Returns
  • True if the tile should be replaced with parent. False otherwise.

public void setMaxAge (long maxAge)

Sets the maximum age of tile data, tile data will expire after that point.

Parameters
maxAge Tile data maximum age in milliseconds, or -1 if the data does not expire.

public void setReplaceWithParent (boolean flag)

Set the parent replacement flag.

Parameters
flag True when the tile should be replaced with the parent, false otherwise.