Class Progress.Default

java.lang.Object
com.complexible.common.base.Progress.Default
All Implemented Interfaces:
Progress
Enclosing interface:
Progress

public static class Progress.Default extends Object implements Progress
Immutable default implementation of a progress
  • Constructor Details

    • Default

      public Default(long mp, long c)
    • Default

      public Default(long mp, long c, String stage)
  • Method Details

    • maxProgress

      public long maxProgress()
      Description copied from interface: Progress
      Returns the maximum progress value for this monitor
      Specified by:
      maxProgress in interface Progress
    • current

      public long current()
      Description copied from interface: Progress
      Returns the current progress value
      Specified by:
      current in interface Progress
    • stage

      public String stage()
      Description copied from interface: Progress
      Returns the current stage of the process, or null if none.
      Specified by:
      stage in interface Progress