Record Class OfflineRegionStatus
java.lang.Object
java.lang.Record
org.maplibre.nativejni.offline.OfflineRegionStatus
public record OfflineRegionStatus(OfflineRegionDownloadState downloadState, int rawDownloadState, long completedResourceCount, long completedResourceSize, long completedTileCount, long requiredTileCount, long completedTileSize, long requiredResourceCount, boolean requiredResourceCountIsPrecise, boolean complete)
extends Record
Offline region status snapshot copied from native event payloads.
-
Constructor Summary
ConstructorsConstructorDescriptionOfflineRegionStatus(OfflineRegionDownloadState downloadState, int rawDownloadState, long completedResourceCount, long completedResourceSize, long completedTileCount, long requiredTileCount, long completedTileSize, long requiredResourceCount, boolean requiredResourceCountIsPrecise, boolean complete) Creates an instance of aOfflineRegionStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancomplete()Returns the value of thecompleterecord component.longReturns the value of thecompletedResourceCountrecord component.longReturns the value of thecompletedResourceSizerecord component.longReturns the value of thecompletedTileCountrecord component.longReturns the value of thecompletedTileSizerecord component.Returns the value of thedownloadStaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of therawDownloadStaterecord component.longReturns the value of therequiredResourceCountrecord component.booleanReturns the value of therequiredResourceCountIsPreciserecord component.longReturns the value of therequiredTileCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OfflineRegionStatus
public OfflineRegionStatus(OfflineRegionDownloadState downloadState, int rawDownloadState, long completedResourceCount, long completedResourceSize, long completedTileCount, long requiredTileCount, long completedTileSize, long requiredResourceCount, boolean requiredResourceCountIsPrecise, boolean complete) Creates an instance of aOfflineRegionStatusrecord class.- Parameters:
downloadState- the value for thedownloadStaterecord componentrawDownloadState- the value for therawDownloadStaterecord componentcompletedResourceCount- the value for thecompletedResourceCountrecord componentcompletedResourceSize- the value for thecompletedResourceSizerecord componentcompletedTileCount- the value for thecompletedTileCountrecord componentrequiredTileCount- the value for therequiredTileCountrecord componentcompletedTileSize- the value for thecompletedTileSizerecord componentrequiredResourceCount- the value for therequiredResourceCountrecord componentrequiredResourceCountIsPrecise- the value for therequiredResourceCountIsPreciserecord componentcomplete- the value for thecompleterecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
downloadState
Returns the value of thedownloadStaterecord component.- Returns:
- the value of the
downloadStaterecord component
-
rawDownloadState
public int rawDownloadState()Returns the value of therawDownloadStaterecord component.- Returns:
- the value of the
rawDownloadStaterecord component
-
completedResourceCount
public long completedResourceCount()Returns the value of thecompletedResourceCountrecord component.- Returns:
- the value of the
completedResourceCountrecord component
-
completedResourceSize
public long completedResourceSize()Returns the value of thecompletedResourceSizerecord component.- Returns:
- the value of the
completedResourceSizerecord component
-
completedTileCount
public long completedTileCount()Returns the value of thecompletedTileCountrecord component.- Returns:
- the value of the
completedTileCountrecord component
-
requiredTileCount
public long requiredTileCount()Returns the value of therequiredTileCountrecord component.- Returns:
- the value of the
requiredTileCountrecord component
-
completedTileSize
public long completedTileSize()Returns the value of thecompletedTileSizerecord component.- Returns:
- the value of the
completedTileSizerecord component
-
requiredResourceCount
public long requiredResourceCount()Returns the value of therequiredResourceCountrecord component.- Returns:
- the value of the
requiredResourceCountrecord component
-
requiredResourceCountIsPrecise
public boolean requiredResourceCountIsPrecise()Returns the value of therequiredResourceCountIsPreciserecord component.- Returns:
- the value of the
requiredResourceCountIsPreciserecord component
-
complete
public boolean complete()Returns the value of thecompleterecord component.- Returns:
- the value of the
completerecord component
-