public abstract class TerrainRegion extends Object implements IEquatable<TerrainRegion>
TerrainCache and TerrainCacheGroup.| Modifier | Constructor and Description | 
|---|---|
protected  | 
TerrainRegion(TerrainCache cache)
Initializes a new instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object obj)
Indicates whether another object is exactly equal to this instance. 
 | 
abstract boolean | 
equalsType(TerrainRegion other)
Indicates whether another instance of this type is exactly equal to this instance. 
 | 
TerrainCache | 
getCache()
Gets the cache associated with this region. 
 | 
boolean | 
getIsLockedInMemory()
Gets a value indicating whether this region is locked in memory. 
 | 
TerrainCacheTimeStamp | 
getLastAccess()
Gets the time stamp of the last time this region was accessed. 
 | 
abstract long | 
getSize()
Gets the approximate size, in bytes, of this region. 
 | 
TerrainRegionStatus | 
getStatus()
Gets the current status of this region. 
 | 
abstract int | 
hashCode()
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table. 
 | 
void | 
setIsLockedInMemory(boolean value)
Sets a value indicating whether this region is locked in memory. 
 | 
void | 
setStatus(TerrainRegionStatus value)
Sets the current status of this region. 
 | 
void | 
updateLastAccess()
Updates the last access time of this terrain region with the current time stamp
    of the cache group associated with this region. 
 | 
protected TerrainRegion(@Nonnull TerrainCache cache)
cache - The cache that owns this region.ArgumentNullException - Thrown when cache is null.@Nonnull public final TerrainCache getCache()
@Nonnull public final TerrainCacheTimeStamp getLastAccess()
public final void updateLastAccess()
@Nonnull public final TerrainRegionStatus getStatus()
public final void setStatus(@Nonnull TerrainRegionStatus value)
public final boolean getIsLockedInMemory()
public final void setIsLockedInMemory(boolean value)
public abstract long getSize()
public boolean equals(Object obj)
equals in class Objectobj - The object to compare to this instance.true if obj is an instance of this type and represents the same value as this instance; otherwise false.Object.hashCode(), 
HashMappublic abstract int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object), 
System.identityHashCode(java.lang.Object)public abstract boolean equalsType(TerrainRegion other)
equalsType in interface IEquatable<TerrainRegion>other - The instance to compare to this instance.true if other represents the same value as this instance; otherwise false.