public class TileData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
TileData(long cPtr,
boolean cMemoryOwn) |
TileData(UnsignedCharVector data)
Constructs a TileData object from a data blob.
|
Modifier and Type | Method and Description |
---|---|
void |
delete() |
boolean |
equals(java.lang.Object obj)
Checks if this object is equal to the specified object.
|
protected void |
finalize() |
static long |
getCPtr(TileData obj) |
UnsignedCharVector |
getData()
Returns tile data as a byte vector.
|
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 age)
Sets the maximum age of tile data, tile data will expire after that point.
|
void |
setReplaceWithParent(boolean flag)
Set the parent replacement flag.
|
public TileData(long cPtr, boolean cMemoryOwn)
public TileData(UnsignedCharVector data)
data
- The source tile data.public static long getCPtr(TileData obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public long getMaxAge()
public void setMaxAge(long age)
public boolean isReplaceWithParent()
public void setReplaceWithParent(boolean flag)
flag
- True when the tile should be replaced with the parent, false otherwise.public UnsignedCharVector getData()