Package com.massifmaps.packagemanager
Class PackageStatus
java.lang.Object
com.massifmaps.packagemanager.PackageStatus
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.
Also it contains information if the package processing is paused and about the progress.
-
Constructor Summary
ConstructorsConstructorDescriptionPackageStatus(int currentAction, boolean paused, float progress) Constructs a new status. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this object is equal to the specified object.intReturns the current action being performed.floatReturns the progress of the action.inthashCode()Returns the hash value of this object.booleanisPaused()Returns the paused state of the action.
-
Constructor Details
-
PackageStatus
public PackageStatus(int 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)
-
-
Method Details
-
equals
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()Returns the hash value of this object. -
getCurrentAction
public int getCurrentAction()Returns the current action being performed.- Returns:
- The current action being performed.
-
isPaused
public boolean isPaused()Returns the paused state of the action.- Returns:
- True when the action is paused, false if the action is active.
-
getProgress
public float getProgress()Returns the progress of the action.- Returns:
- The progress of the action (in the range 0..100)
-