public class

PackageStatus

extends Object
java.lang.Object
   ↳ com.carto.packagemanager.PackageStatus

Class Overview

The status of the map package. This includes information whether the package is ready, queued for processing, downloading, etc.
Also it contains information if the package processing is paused and about the progress.

Summary

Public Constructors
PackageStatus(PackageAction currentAction, boolean paused, float progress)
Constructs a new status.
Public Methods
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
PackageAction getCurrentAction()
Returns the current action being performed.
float getProgress()
Returns the progress of the action.
int hashCode()
Returns the hash value of this object.
boolean isPaused()
Returns the paused state of the action.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PackageStatus (PackageAction currentAction, boolean paused, float progress)

Constructs a new status.

Parameters
currentAction The current action being performed with the package.
paused True if the action is paused.
progress The progress of the operation (in the range 0..100)

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 PackageAction getCurrentAction ()

Returns the current action being performed.

Returns
  • The current action being performed.

public float getProgress ()

Returns the progress of the action.

Returns
  • The progress of the action (in the range 0..100)

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.

public boolean isPaused ()

Returns the paused state of the action.

Returns
  • True when the action is paused, false if the action is active.