summaryrefslogtreecommitdiff
path: root/src/main/java/org/javacs/ReportProgress.java
blob: 4ff92223fef82f41e11021f1c7976116cd94986f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package org.javacs;

public interface ReportProgress {
    void start(String message);

    void progress(String message, int n, int total);

    public static final ReportProgress EMPTY =
            new ReportProgress() {
                @Override
                public void start(String message) {}

                @Override
                public void progress(String message, int n, int total) {}
            };
}