diff options
Diffstat (limited to 'src/de/lmu/ifi/dbs/elki/logging/progress/FiniteProgress.java')
-rw-r--r-- | src/de/lmu/ifi/dbs/elki/logging/progress/FiniteProgress.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/de/lmu/ifi/dbs/elki/logging/progress/FiniteProgress.java b/src/de/lmu/ifi/dbs/elki/logging/progress/FiniteProgress.java index 83419ef4..c9cae77f 100644 --- a/src/de/lmu/ifi/dbs/elki/logging/progress/FiniteProgress.java +++ b/src/de/lmu/ifi/dbs/elki/logging/progress/FiniteProgress.java @@ -4,7 +4,7 @@ package de.lmu.ifi.dbs.elki.logging.progress; This file is part of ELKI: Environment for Developing KDD-Applications Supported by Index-Structures - Copyright (C) 2013 + Copyright (C) 2014 Ludwig-Maximilians-Universität München Lehr- und Forschungseinheit für Datenbanksysteme ELKI Development Team @@ -47,13 +47,12 @@ public class FiniteProgress extends AbstractProgress { private final int totalLength; /** - * A progress object for a given overall number of items to process. + * Constructor. * * @param task the name of the task * @param total the overall number of items to process */ - @Deprecated - public FiniteProgress(String task, int total) { + protected FiniteProgress(String task, int total) { super(task); this.total = total; this.totalLength = Integer.toString(total).length(); @@ -81,7 +80,7 @@ public class FiniteProgress extends AbstractProgress { * the overall number of items to process */ @Override - public void setProcessed(int processed) throws IllegalArgumentException { + protected void setProcessed(int processed) throws IllegalArgumentException { if (processed > total) { throw new IllegalArgumentException(processed + " exceeds total: " + total); } |