
org.xblackcat.sjpu.cli.progress.IProgressPublisher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sjpu-cli-helper Show documentation
Show all versions of sjpu-cli-helper Show documentation
Library for holding common logic to work with CLI: parsing parameters to target objects
The newest version!
package org.xblackcat.sjpu.cli.progress;
public interface IProgressPublisher {
IProgressPublisher NO_RENDERER = new IProgressPublisher() {
@Override
public boolean publish(long current) {
return false;
}
@Override
public void done() {
}
@Override
public boolean isDone() {
return false;
}
};
/**
* Publish and render a new value for progress
*
* @param current new progress value
* @return true if progress string has changed
*/
boolean publish(long current);
boolean isDone();
void done();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy