Class Progress.Default

  • All Implemented Interfaces:
    Progress
    Enclosing interface:
    Progress

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

      Constructors 
      Constructor Description
      Default​(long mp, long c)  
      Default​(long mp, long c, java.lang.String stage)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long current()
      Returns the current progress value
      long maxProgress()
      Returns the maximum progress value for this monitor
      java.lang.String stage()
      Returns the current stage of the process, or null if none.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Default

        public Default​(long mp,
                       long c)
      • Default

        public Default​(long mp,
                       long c,
                       java.lang.String stage)
    • Method Detail

      • 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 java.lang.String stage()
        Description copied from interface: Progress
        Returns the current stage of the process, or null if none.
        Specified by:
        stage in interface Progress