Mercurial > jhg
comparison src/org/tmatesoft/hg/util/ProgressSupport.java @ 157:d5268ca7715b
Merged branch wrap-data-access into default for resource-friendly data access. Updated API to promote that friendliness to clients (channels, not byte[]). More exceptions
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 09 Mar 2011 05:22:17 +0100 |
parents | 1a7a9a20e1f9 |
children | 41a778e3fd31 |
comparison
equal
deleted
inserted
replaced
156:643ddec3be36 | 157:d5268ca7715b |
---|---|
22 * @author Artem Tikhomirov | 22 * @author Artem Tikhomirov |
23 * @author TMate Software Ltd. | 23 * @author TMate Software Ltd. |
24 */ | 24 */ |
25 public interface ProgressSupport { | 25 public interface ProgressSupport { |
26 | 26 |
27 public void start(int totalUnits); | 27 public void start(long totalUnits); |
28 public void worked(int units); | 28 public void worked(int units); |
29 public void done(); | 29 public void done(); |
30 | 30 |
31 static class Factory { | 31 static class Factory { |
32 | 32 |
43 if (ps != null) { | 43 if (ps != null) { |
44 return ps; | 44 return ps; |
45 } | 45 } |
46 } | 46 } |
47 return new ProgressSupport() { | 47 return new ProgressSupport() { |
48 public void start(int totalUnits) { | 48 public void start(long totalUnits) { |
49 } | 49 } |
50 public void worked(int units) { | 50 public void worked(int units) { |
51 } | 51 } |
52 public void done() { | 52 public void done() { |
53 } | 53 } |