Class PackageStatus

java.lang.Object
com.massifmaps.packagemanager.PackageStatus

public class PackageStatus extends Object
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.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PackageStatus(int currentAction, boolean paused, float progress)
    Constructs a new status.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if this object is equal to the specified object.
    int
    Returns the current action being performed.
    float
    Returns the progress of the action.
    int
    Returns the hash value of this object.
    boolean
    Returns the paused state of the action.

    Methods inherited from class java.lang.Object

    clone, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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

      public boolean equals(Object obj)
      Checks if this object is equal to the specified object.
      Overrides:
      equals in class Object
      Parameters:
      obj - The reference object.
      Returns:
      True when objects are equal, false otherwise.
    • hashCode

      public int hashCode()
      Returns the hash value of this object.
      Overrides:
      hashCode in class Object
      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)