Class ProgressPrinter

java.lang.Object
net.bluemind.utils.ProgressPrinter

public class ProgressPrinter extends Object
  • Constructor Details

    • ProgressPrinter

      public ProgressPrinter(long total)
    • ProgressPrinter

      public ProgressPrinter(long total, long printEvery, long printEverySeconds)
      Generate a "progress" log every "printEvery" item, or every printEverySecond seconds
      Parameters:
      total - long: total number of exepected elements
      printEvery - : print the log every "n" elements
      printEverySeconds -
  • Method Details

    • reset

      public void reset()
    • add

      public void add()
    • add

      public void add(long elements)
    • toHumanReadableSIPrefixes

      public static String toHumanReadableSIPrefixes(long size)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • shouldPrint

      public boolean shouldPrint()