All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xblackcat.sjpu.cli.progress.IProgressPublisher Maven / Gradle / Ivy

Go to download

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