Class ProgressImpl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Progress

    public class ProgressImpl
    extends java.lang.Object
    implements Progress, java.lang.Cloneable
    See Also:
    Serialized Form
    • Constructor Detail

      • ProgressImpl

        public ProgressImpl​(int aCompleted,
                            int aTotal,
                            java.lang.String aUnit,
                            boolean aApproximate)
      • ProgressImpl

        public ProgressImpl​(int aCompleted,
                            int aTotal,
                            java.lang.String aUnit)
    • Method Detail

      • getCompleted

        public long getCompleted()
        Description copied from interface: Progress
        The amount completed, in terms of units specified by Progress.getUnit().
        Specified by:
        getCompleted in interface Progress
        Returns:
        the amount completed
      • getTotal

        public long getTotal()
        Description copied from interface: Progress
        The total amount being processed, in terms of units specified by Progress.getUnit(). For some processes, this information may not be available - in these cases, -1 will be returned.
        Specified by:
        getTotal in interface Progress
        Returns:
        the total amount, -1 if not known
      • setCompleted

        public void setCompleted​(int aCompleted)
      • setTotal

        public void setTotal​(int aTotal)
      • isApproximate

        public boolean isApproximate()
        Description copied from interface: Progress
        Returns true if the progress statistics are approximate, for example if the total number of entities in the collection is not known.
        Specified by:
        isApproximate in interface Progress
        Returns:
        true if the statistics are approximate, false if they are exact
      • increment

        public void increment​(int aIncrement)
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object