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

    Constructors
    Constructor
    Description
    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 a OfflineRegionStatus record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the complete record component.
    long
    Returns the value of the completedResourceCount record component.
    long
    Returns the value of the completedResourceSize record component.
    long
    Returns the value of the completedTileCount record component.
    long
    Returns the value of the completedTileSize record component.
    Returns the value of the downloadState record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the rawDownloadState record component.
    long
    Returns the value of the requiredResourceCount record component.
    boolean
    Returns the value of the requiredResourceCountIsPrecise record component.
    long
    Returns the value of the requiredTileCount record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a OfflineRegionStatus record class.
      Parameters:
      downloadState - the value for the downloadState record component
      rawDownloadState - the value for the rawDownloadState record component
      completedResourceCount - the value for the completedResourceCount record component
      completedResourceSize - the value for the completedResourceSize record component
      completedTileCount - the value for the completedTileCount record component
      requiredTileCount - the value for the requiredTileCount record component
      completedTileSize - the value for the completedTileSize record component
      requiredResourceCount - the value for the requiredResourceCount record component
      requiredResourceCountIsPrecise - the value for the requiredResourceCountIsPrecise record component
      complete - the value for the complete record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • downloadState

      public OfflineRegionDownloadState downloadState()
      Returns the value of the downloadState record component.
      Returns:
      the value of the downloadState record component
    • rawDownloadState

      public int rawDownloadState()
      Returns the value of the rawDownloadState record component.
      Returns:
      the value of the rawDownloadState record component
    • completedResourceCount

      public long completedResourceCount()
      Returns the value of the completedResourceCount record component.
      Returns:
      the value of the completedResourceCount record component
    • completedResourceSize

      public long completedResourceSize()
      Returns the value of the completedResourceSize record component.
      Returns:
      the value of the completedResourceSize record component
    • completedTileCount

      public long completedTileCount()
      Returns the value of the completedTileCount record component.
      Returns:
      the value of the completedTileCount record component
    • requiredTileCount

      public long requiredTileCount()
      Returns the value of the requiredTileCount record component.
      Returns:
      the value of the requiredTileCount record component
    • completedTileSize

      public long completedTileSize()
      Returns the value of the completedTileSize record component.
      Returns:
      the value of the completedTileSize record component
    • requiredResourceCount

      public long requiredResourceCount()
      Returns the value of the requiredResourceCount record component.
      Returns:
      the value of the requiredResourceCount record component
    • requiredResourceCountIsPrecise

      public boolean requiredResourceCountIsPrecise()
      Returns the value of the requiredResourceCountIsPrecise record component.
      Returns:
      the value of the requiredResourceCountIsPrecise record component
    • complete

      public boolean complete()
      Returns the value of the complete record component.
      Returns:
      the value of the complete record component